Skip to content

Commit f229e70

Browse files
committed
all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor)
When these packages are released as part of Go 1.18, Go 1.16 will no longer be supported, so we can remove the +build tags in these files. Ran go fix -fix=buildtag std cmd and then reverted the bootstrapDirs as defined in src/cmd/dist/buildtool.go, which need to continue to build with Go 1.4 for now. Also reverted src/vendor and src/cmd/vendor, which will need to be updated in their own repos first. Manual changes in runtime/pprof/mprof_test.go to adjust line numbers. For #41184. Change-Id: Ic0f93f7091295b6abc76ed5cd6e6746e1280861e Reviewed-on: https://go-review.googlesource.com/c/go/+/344955 Trust: Russ Cox <[email protected]> Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent ed475fe commit f229e70

File tree

834 files changed

+9
-941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

834 files changed

+9
-941
lines changed

src/archive/tar/stat_actime1.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build aix || linux || dragonfly || openbsd || solaris
6-
// +build aix linux dragonfly openbsd solaris
76

87
package tar
98

src/archive/tar/stat_actime2.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build darwin || freebsd || netbsd
6-
// +build darwin freebsd netbsd
76

87
package tar
98

src/archive/tar/stat_unix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build aix || linux || darwin || dragonfly || freebsd || openbsd || netbsd || solaris
6-
// +build aix linux darwin dragonfly freebsd openbsd netbsd solaris
76

87
package tar
98

src/bytes/boundary_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44
//
55
//go:build linux
6-
// +build linux
76

87
package bytes_test
98

src/cmd/api/run.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// The run program is invoked via the dist tool.
98
// To invoke manually: go tool dist test -run api --no-rebuild

src/cmd/go/go11.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build go1.1
6-
// +build go1.1
76

87
package main
98

src/cmd/go/go_unix_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
6-
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
76

87
package main_test
98

src/cmd/go/internal/base/signal_notunix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build plan9 || windows
6-
// +build plan9 windows
76

87
package base
98

src/cmd/go/internal/base/signal_unix.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build aix || darwin || dragonfly || freebsd || js || linux || netbsd || openbsd || solaris
6-
// +build aix darwin dragonfly freebsd js linux netbsd openbsd solaris
76

87
package base
98

src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build aix || (solaris && !illumos)
6-
// +build aix solaris,!illumos
76

87
// This code implements the filelock API using POSIX 'fcntl' locks, which attach
98
// to an (inode, process) pair rather than a file descriptor. To avoid unlocking

0 commit comments

Comments
 (0)