Skip to content

Commit 71f6a46

Browse files
dmitshurgopherbot
authored andcommitted
cmd/bundle: drop old +build lines
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent cdf1b5e commit 71f6a46

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

cmd/bundle/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ func bundle(src, dst, dstpkg, prefix, buildTags string) ([]byte, error) {
228228
var out bytes.Buffer
229229
if buildTags != "" {
230230
fmt.Fprintf(&out, "//go:build %s\n", buildTags)
231-
fmt.Fprintf(&out, "// +build %s\n\n", buildTags)
232231
}
233232

234233
fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.\n")

cmd/bundle/testdata/out.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build tag
2-
// +build tag
32

43
// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.
54
// $ bundle

0 commit comments

Comments
 (0)