replace +build with go:build

go:build is the new conditional compilation directive used to specify build constraints. It was introduced in Go 1.17. It is meant to replace the old +build directives.

Now that go.mod points to Go 1.17 we no longer need to support both
build flags.

Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
pull/10861/head
Matthew Fisher 2 years ago
parent f91e8d218e
commit 2878cc8079
No known key found for this signature in database
GPG Key ID: 887ED80487CE4E0F

@ -1,5 +1,4 @@
//go:build !windows //go:build !windows
// +build !windows
/* /*
Copyright The Helm Authors. Copyright The Helm Authors.

@ -1,5 +1,4 @@
//go:build !windows //go:build !windows
// +build !windows
/* /*
Copyright The Helm Authors. Copyright The Helm Authors.

@ -1,4 +1,4 @@
// +build !windows //go:build !windows
/* /*
Copyright (c) for portions of rename.go are held by The Go Authors, 2016 and are provided under Copyright (c) for portions of rename.go are held by The Go Authors, 2016 and are provided under

@ -1,4 +1,4 @@
// +build windows //go:build windows
/* /*
Copyright (c) for portions of rename_windows.go are held by The Go Authors, 2016 and are provided under Copyright (c) for portions of rename_windows.go are held by The Go Authors, 2016 and are provided under

@ -12,7 +12,6 @@
// limitations under the License. // limitations under the License.
//go:build !windows //go:build !windows
// +build !windows
package helmpath package helmpath

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build windows //go:build windows
package helmpath package helmpath

@ -12,7 +12,6 @@
// limitations under the License. // limitations under the License.
//go:build darwin //go:build darwin
// +build darwin
package helmpath package helmpath

@ -12,7 +12,6 @@
// limitations under the License. // limitations under the License.
//go:build darwin //go:build darwin
// +build darwin
package helmpath package helmpath

@ -12,7 +12,6 @@
// limitations under the License. // limitations under the License.
//go:build !windows && !darwin //go:build !windows && !darwin
// +build !windows,!darwin
package helmpath package helmpath

@ -12,7 +12,6 @@
// limitations under the License. // limitations under the License.
//go:build !windows && !darwin //go:build !windows && !darwin
// +build !windows,!darwin
package helmpath package helmpath

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build windows //go:build windows
package helmpath package helmpath

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build windows //go:build windows
package helmpath package helmpath

Loading…
Cancel
Save