Skip to content

Commit

Permalink
cmd/bundle: drop old +build lines
Browse files Browse the repository at this point in the history
The +build to go:build syntax conversion has progressed enough that
it's fine to write only the new syntax now. All supported (and many
unsupported) Go releases understand it.

For golang/go#41184.
For golang/go#60268.

Change-Id: I8c1600577a21f4c7c89123302ca976d881a69841
Reviewed-on: https://go-review.googlesource.com/c/tools/+/536075
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
dmitshur authored and gopherbot committed Oct 19, 2023
1 parent cdf1b5e commit 71f6a46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/bundle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ func bundle(src, dst, dstpkg, prefix, buildTags string) ([]byte, error) {
var out bytes.Buffer
if buildTags != "" {
fmt.Fprintf(&out, "//go:build %s\n", buildTags)
fmt.Fprintf(&out, "// +build %s\n\n", buildTags)
}

fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.\n")
Expand Down
1 change: 0 additions & 1 deletion cmd/bundle/testdata/out.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build tag
// +build tag

// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.
// $ bundle
Expand Down

0 comments on commit 71f6a46

Please sign in to comment.