Skip to content

Commit 135f3ff

Browse files
Adapt to the new compilation directive introduced in Go 1.17
The new directive is "//go:build". The older one, "// +build", is not removed yet to make sure the code compiles in older versions. Change-Id: I833afaf2ed4e7301d1979f3d00e1cc8438d25745
1 parent fed321d commit 135f3ff

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

config/debug/debug.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
44

5+
//go:build debug
56
// +build debug
67

78
package debug

config/debug/release.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
44

5+
//go:build !debug
56
// +build !debug
67

78
package debug

e2e-tests/run-e2e-test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
// Tool to run end to end tests using Kubetest2 and Ginkgo
66

7-
//+build ignore
7+
//go:build ignore
8+
// +build ignore
89

910
package main
1011

pkg/apis/ndbcontroller/v1alpha1/zz_generated.deepcopy.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/signals/signal_posix.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !windows
12
// +build !windows
23

34
// Copyright (c) 2020, 2021, Oracle and/or its affiliates.

0 commit comments

Comments
 (0)