aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-08-25 12:48:26 -0400
committerRuss Cox <rsc@golang.org>2021-10-28 18:17:57 +0000
commitf229e7031a6efb2f23241b5da000c3b3203081d6 (patch)
tree69664f4f4b37d9256133addc8f0328590b70a055 /src/internal
parented475fe53ba41c0c15b11565f8b9d00165345bc2 (diff)
downloadgo-f229e7031a6efb2f23241b5da000c3b3203081d6.tar.gz
go-f229e7031a6efb2f23241b5da000c3b3203081d6.zip
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 <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/abi/abi_arm64.go1
-rw-r--r--src/internal/abi/abi_generic.go1
-rw-r--r--src/internal/abi/abi_ppc64x.go2
-rw-r--r--src/internal/bytealg/compare_generic.go1
-rw-r--r--src/internal/bytealg/compare_native.go1
-rw-r--r--src/internal/bytealg/count_generic.go1
-rw-r--r--src/internal/bytealg/count_native.go1
-rw-r--r--src/internal/bytealg/index_generic.go1
-rw-r--r--src/internal/bytealg/index_native.go1
-rw-r--r--src/internal/bytealg/index_ppc64x.go2
-rw-r--r--src/internal/bytealg/indexbyte_generic.go1
-rw-r--r--src/internal/bytealg/indexbyte_native.go1
-rw-r--r--src/internal/cpu/cpu_arm64_android.go1
-rw-r--r--src/internal/cpu/cpu_arm64_darwin.go1
-rw-r--r--src/internal/cpu/cpu_arm64_freebsd.go1
-rw-r--r--src/internal/cpu/cpu_arm64_hwcap.go1
-rw-r--r--src/internal/cpu/cpu_arm64_linux.go1
-rw-r--r--src/internal/cpu/cpu_arm64_other.go5
-rw-r--r--src/internal/cpu/cpu_mips64x.go1
-rw-r--r--src/internal/cpu/cpu_no_name.go1
-rw-r--r--src/internal/cpu/cpu_ppc64x.go1
-rw-r--r--src/internal/cpu/cpu_ppc64x_aix.go1
-rw-r--r--src/internal/cpu/cpu_ppc64x_linux.go1
-rw-r--r--src/internal/cpu/cpu_x86.go1
-rw-r--r--src/internal/cpu/cpu_x86_test.go1
-rw-r--r--src/internal/fuzz/minimize_test.go1
-rw-r--r--src/internal/fuzz/sys_posix.go1
-rw-r--r--src/internal/fuzz/sys_unimplemented.go1
-rw-r--r--src/internal/fuzz/trace.go1
-rw-r--r--src/internal/goarch/gengoarch.go1
-rw-r--r--src/internal/goarch/zgoarch_386.go1
-rw-r--r--src/internal/goarch/zgoarch_amd64.go1
-rw-r--r--src/internal/goarch/zgoarch_arm.go1
-rw-r--r--src/internal/goarch/zgoarch_arm64.go1
-rw-r--r--src/internal/goarch/zgoarch_arm64be.go1
-rw-r--r--src/internal/goarch/zgoarch_armbe.go1
-rw-r--r--src/internal/goarch/zgoarch_loong64.go1
-rw-r--r--src/internal/goarch/zgoarch_mips.go1
-rw-r--r--src/internal/goarch/zgoarch_mips64.go1
-rw-r--r--src/internal/goarch/zgoarch_mips64le.go1
-rw-r--r--src/internal/goarch/zgoarch_mips64p32.go1
-rw-r--r--src/internal/goarch/zgoarch_mips64p32le.go1
-rw-r--r--src/internal/goarch/zgoarch_mipsle.go1
-rw-r--r--src/internal/goarch/zgoarch_ppc.go1
-rw-r--r--src/internal/goarch/zgoarch_ppc64.go1
-rw-r--r--src/internal/goarch/zgoarch_ppc64le.go1
-rw-r--r--src/internal/goarch/zgoarch_riscv.go1
-rw-r--r--src/internal/goarch/zgoarch_riscv64.go1
-rw-r--r--src/internal/goarch/zgoarch_s390.go1
-rw-r--r--src/internal/goarch/zgoarch_s390x.go1
-rw-r--r--src/internal/goarch/zgoarch_sparc.go1
-rw-r--r--src/internal/goarch/zgoarch_sparc64.go1
-rw-r--r--src/internal/goarch/zgoarch_wasm.go1
-rw-r--r--src/internal/goos/gengoos.go1
-rw-r--r--src/internal/goos/zgoos_aix.go1
-rw-r--r--src/internal/goos/zgoos_android.go1
-rw-r--r--src/internal/goos/zgoos_darwin.go1
-rw-r--r--src/internal/goos/zgoos_dragonfly.go1
-rw-r--r--src/internal/goos/zgoos_freebsd.go1
-rw-r--r--src/internal/goos/zgoos_hurd.go1
-rw-r--r--src/internal/goos/zgoos_illumos.go1
-rw-r--r--src/internal/goos/zgoos_ios.go1
-rw-r--r--src/internal/goos/zgoos_js.go1
-rw-r--r--src/internal/goos/zgoos_linux.go1
-rw-r--r--src/internal/goos/zgoos_netbsd.go1
-rw-r--r--src/internal/goos/zgoos_openbsd.go1
-rw-r--r--src/internal/goos/zgoos_plan9.go1
-rw-r--r--src/internal/goos/zgoos_solaris.go1
-rw-r--r--src/internal/goos/zgoos_windows.go1
-rw-r--r--src/internal/goos/zgoos_zos.go1
-rw-r--r--src/internal/goroot/gc.go1
-rw-r--r--src/internal/goroot/gccgo.go1
-rw-r--r--src/internal/poll/errno_unix.go1
-rw-r--r--src/internal/poll/errno_windows.go1
-rw-r--r--src/internal/poll/error_stub_test.go1
-rw-r--r--src/internal/poll/export_posix_test.go1
-rw-r--r--src/internal/poll/fcntl_js.go1
-rw-r--r--src/internal/poll/fcntl_libc.go1
-rw-r--r--src/internal/poll/fcntl_syscall.go1
-rw-r--r--src/internal/poll/fd_fsync_posix.go1
-rw-r--r--src/internal/poll/fd_poll_js.go1
-rw-r--r--src/internal/poll/fd_poll_runtime.go1
-rw-r--r--src/internal/poll/fd_posix.go1
-rw-r--r--src/internal/poll/fd_posix_test.go1
-rw-r--r--src/internal/poll/fd_unix.go1
-rw-r--r--src/internal/poll/fd_writev_darwin.go1
-rw-r--r--src/internal/poll/fd_writev_illumos.go1
-rw-r--r--src/internal/poll/fd_writev_unix.go1
-rw-r--r--src/internal/poll/hook_cloexec.go1
-rw-r--r--src/internal/poll/hook_unix.go1
-rw-r--r--src/internal/poll/iovec_illumos.go1
-rw-r--r--src/internal/poll/iovec_unix.go1
-rw-r--r--src/internal/poll/sendfile_bsd.go1
-rw-r--r--src/internal/poll/sock_cloexec.go1
-rw-r--r--src/internal/poll/sockopt.go1
-rw-r--r--src/internal/poll/sockopt_unix.go1
-rw-r--r--src/internal/poll/sockoptip.go1
-rw-r--r--src/internal/poll/strconv.go1
-rw-r--r--src/internal/poll/sys_cloexec.go1
-rw-r--r--src/internal/poll/writev.go1
-rw-r--r--src/internal/syscall/execenv/execenv_default.go1
-rw-r--r--src/internal/syscall/execenv/execenv_windows.go1
-rw-r--r--src/internal/syscall/unix/at.go1
-rw-r--r--src/internal/syscall/unix/at_libc.go1
-rw-r--r--src/internal/syscall/unix/at_sysnum_fstatat64_linux.go1
-rw-r--r--src/internal/syscall/unix/at_sysnum_fstatat_linux.go1
-rw-r--r--src/internal/syscall/unix/at_sysnum_newfstatat_linux.go1
-rw-r--r--src/internal/syscall/unix/fcntl_linux_32bit.go1
-rw-r--r--src/internal/syscall/unix/getentropy_darwin.go1
-rw-r--r--src/internal/syscall/unix/getrandom.go1
-rw-r--r--src/internal/syscall/unix/nonblocking.go1
-rw-r--r--src/internal/syscall/unix/nonblocking_js.go1
-rw-r--r--src/internal/syscall/unix/nonblocking_libc.go1
-rw-r--r--src/internal/syscall/unix/pipe2_illumos.go1
-rw-r--r--src/internal/syscall/unix/sysnum_linux_generic.go2
-rw-r--r--src/internal/syscall/unix/sysnum_linux_mips64x.go1
-rw-r--r--src/internal/syscall/unix/sysnum_linux_mipsx.go1
-rw-r--r--src/internal/syscall/unix/sysnum_linux_ppc64x.go1
-rw-r--r--src/internal/syscall/unix/writev_illumos.go1
-rw-r--r--src/internal/testenv/testenv_cgo.go1
-rw-r--r--src/internal/testenv/testenv_notwin.go1
121 files changed, 0 insertions, 128 deletions
diff --git a/src/internal/abi/abi_arm64.go b/src/internal/abi/abi_arm64.go
index 7544d7506e..5c3dd6cbe2 100644
--- a/src/internal/abi/abi_arm64.go
+++ b/src/internal/abi/abi_arm64.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build goexperiment.regabireflect
-// +build goexperiment.regabireflect
package abi
diff --git a/src/internal/abi/abi_generic.go b/src/internal/abi/abi_generic.go
index e8f94f805f..a36745f402 100644
--- a/src/internal/abi/abi_generic.go
+++ b/src/internal/abi/abi_generic.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !goexperiment.regabireflect && !amd64
-// +build !goexperiment.regabireflect,!amd64
package abi
diff --git a/src/internal/abi/abi_ppc64x.go b/src/internal/abi/abi_ppc64x.go
index e38653224a..d47271d1a1 100644
--- a/src/internal/abi/abi_ppc64x.go
+++ b/src/internal/abi/abi_ppc64x.go
@@ -3,8 +3,6 @@
// license that can be found in the LICENSE file.
//go:build goexperiment.regabireflect && (ppc64 || ppc64le)
-// +build goexperiment.regabireflect
-// +build ppc64 ppc64le
package abi
diff --git a/src/internal/bytealg/compare_generic.go b/src/internal/bytealg/compare_generic.go
index 0690d0cf31..eaea168f2d 100644
--- a/src/internal/bytealg/compare_generic.go
+++ b/src/internal/bytealg/compare_generic.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !386 && !amd64 && !s390x && !arm && !arm64 && !ppc64 && !ppc64le && !mips && !mipsle && !wasm && !mips64 && !mips64le
-// +build !386,!amd64,!s390x,!arm,!arm64,!ppc64,!ppc64le,!mips,!mipsle,!wasm,!mips64,!mips64le
package bytealg
diff --git a/src/internal/bytealg/compare_native.go b/src/internal/bytealg/compare_native.go
index baa188ff7a..21ff8fe786 100644
--- a/src/internal/bytealg/compare_native.go
+++ b/src/internal/bytealg/compare_native.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build 386 || amd64 || s390x || arm || arm64 || ppc64 || ppc64le || mips || mipsle || wasm || mips64 || mips64le
-// +build 386 amd64 s390x arm arm64 ppc64 ppc64le mips mipsle wasm mips64 mips64le
package bytealg
diff --git a/src/internal/bytealg/count_generic.go b/src/internal/bytealg/count_generic.go
index 1891d29b24..932a7c584c 100644
--- a/src/internal/bytealg/count_generic.go
+++ b/src/internal/bytealg/count_generic.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !amd64 && !arm && !arm64 && !ppc64le && !ppc64 && !riscv64 && !s390x
-// +build !amd64,!arm,!arm64,!ppc64le,!ppc64,!riscv64,!s390x
package bytealg
diff --git a/src/internal/bytealg/count_native.go b/src/internal/bytealg/count_native.go
index a19a6f8223..90189c9fe0 100644
--- a/src/internal/bytealg/count_native.go
+++ b/src/internal/bytealg/count_native.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build amd64 || arm || arm64 || ppc64le || ppc64 || riscv64 || s390x
-// +build amd64 arm arm64 ppc64le ppc64 riscv64 s390x
package bytealg
diff --git a/src/internal/bytealg/index_generic.go b/src/internal/bytealg/index_generic.go
index 0a6eb90d2d..a59e32938e 100644
--- a/src/internal/bytealg/index_generic.go
+++ b/src/internal/bytealg/index_generic.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !amd64 && !arm64 && !s390x && !ppc64le && !ppc64
-// +build !amd64,!arm64,!s390x,!ppc64le,!ppc64
package bytealg
diff --git a/src/internal/bytealg/index_native.go b/src/internal/bytealg/index_native.go
index 9547a5d8e2..6e4a2f39e4 100644
--- a/src/internal/bytealg/index_native.go
+++ b/src/internal/bytealg/index_native.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build amd64 || arm64 || s390x || ppc64le || ppc64
-// +build amd64 arm64 s390x ppc64le ppc64
package bytealg
diff --git a/src/internal/bytealg/index_ppc64x.go b/src/internal/bytealg/index_ppc64x.go
index c9b2b5a59f..ab3cbe5e96 100644
--- a/src/internal/bytealg/index_ppc64x.go
+++ b/src/internal/bytealg/index_ppc64x.go
@@ -3,8 +3,6 @@
// license that can be found in the LICENSE file.
//go:build (aix || linux) && (ppc64 || ppc64le)
-// +build aix linux
-// +build ppc64 ppc64le
package bytealg
diff --git a/src/internal/bytealg/indexbyte_generic.go b/src/internal/bytealg/indexbyte_generic.go
index 6ef639fafd..0a45f90384 100644
--- a/src/internal/bytealg/indexbyte_generic.go
+++ b/src/internal/bytealg/indexbyte_generic.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !386 && !amd64 && !s390x && !arm && !arm64 && !ppc64 && !ppc64le && !mips && !mipsle && !mips64 && !mips64le && !riscv64 && !wasm
-// +build !386,!amd64,!s390x,!arm,!arm64,!ppc64,!ppc64le,!mips,!mipsle,!mips64,!mips64le,!riscv64,!wasm
package bytealg
diff --git a/src/internal/bytealg/indexbyte_native.go b/src/internal/bytealg/indexbyte_native.go
index 965f38fe52..2101021e2d 100644
--- a/src/internal/bytealg/indexbyte_native.go
+++ b/src/internal/bytealg/indexbyte_native.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build 386 || amd64 || s390x || arm || arm64 || ppc64 || ppc64le || mips || mipsle || mips64 || mips64le || riscv64 || wasm
-// +build 386 amd64 s390x arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le riscv64 wasm
package bytealg
diff --git a/src/internal/cpu/cpu_arm64_android.go b/src/internal/cpu/cpu_arm64_android.go
index ac6eee54b2..fbdf7baca2 100644
--- a/src/internal/cpu/cpu_arm64_android.go
+++ b/src/internal/cpu/cpu_arm64_android.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64
-// +build arm64
package cpu
diff --git a/src/internal/cpu/cpu_arm64_darwin.go b/src/internal/cpu/cpu_arm64_darwin.go
index ce1b250a18..730e14caff 100644
--- a/src/internal/cpu/cpu_arm64_darwin.go
+++ b/src/internal/cpu/cpu_arm64_darwin.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64 && darwin && !ios
-// +build arm64,darwin,!ios
package cpu
diff --git a/src/internal/cpu/cpu_arm64_freebsd.go b/src/internal/cpu/cpu_arm64_freebsd.go
index 8c481370da..c25e021c68 100644
--- a/src/internal/cpu/cpu_arm64_freebsd.go
+++ b/src/internal/cpu/cpu_arm64_freebsd.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64
-// +build arm64
package cpu
diff --git a/src/internal/cpu/cpu_arm64_hwcap.go b/src/internal/cpu/cpu_arm64_hwcap.go
index 8ac04fd8f9..0baa39f9cf 100644
--- a/src/internal/cpu/cpu_arm64_hwcap.go
+++ b/src/internal/cpu/cpu_arm64_hwcap.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64 && linux
-// +build arm64,linux
package cpu
diff --git a/src/internal/cpu/cpu_arm64_linux.go b/src/internal/cpu/cpu_arm64_linux.go
index c3a3f9a8e9..d746bdb063 100644
--- a/src/internal/cpu/cpu_arm64_linux.go
+++ b/src/internal/cpu/cpu_arm64_linux.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64 && linux && !android
-// +build arm64,linux,!android
package cpu
diff --git a/src/internal/cpu/cpu_arm64_other.go b/src/internal/cpu/cpu_arm64_other.go
index e8b5d529a4..d313648cb7 100644
--- a/src/internal/cpu/cpu_arm64_other.go
+++ b/src/internal/cpu/cpu_arm64_other.go
@@ -3,11 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64 && !linux && !freebsd && !android && (!darwin || ios)
-// +build arm64
-// +build !linux
-// +build !freebsd
-// +build !android
-// +build !darwin ios
package cpu
diff --git a/src/internal/cpu/cpu_mips64x.go b/src/internal/cpu/cpu_mips64x.go
index d2f9d4499b..c452ffd8b3 100644
--- a/src/internal/cpu/cpu_mips64x.go
+++ b/src/internal/cpu/cpu_mips64x.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build mips64 || mips64le
-// +build mips64 mips64le
package cpu
diff --git a/src/internal/cpu/cpu_no_name.go b/src/internal/cpu/cpu_no_name.go
index 8d563b536c..37de951ba6 100644
--- a/src/internal/cpu/cpu_no_name.go
+++ b/src/internal/cpu/cpu_no_name.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !386 && !amd64
-// +build !386,!amd64
package cpu
diff --git a/src/internal/cpu/cpu_ppc64x.go b/src/internal/cpu/cpu_ppc64x.go
index 2e7fd3ebb9..83687d6ed3 100644
--- a/src/internal/cpu/cpu_ppc64x.go
+++ b/src/internal/cpu/cpu_ppc64x.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ppc64 || ppc64le
-// +build ppc64 ppc64le
package cpu
diff --git a/src/internal/cpu/cpu_ppc64x_aix.go b/src/internal/cpu/cpu_ppc64x_aix.go
index 3d17a9c730..d518edcf49 100644
--- a/src/internal/cpu/cpu_ppc64x_aix.go
+++ b/src/internal/cpu/cpu_ppc64x_aix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ppc64 || ppc64le
-// +build ppc64 ppc64le
package cpu
diff --git a/src/internal/cpu/cpu_ppc64x_linux.go b/src/internal/cpu/cpu_ppc64x_linux.go
index b7c7345111..7999656f01 100644
--- a/src/internal/cpu/cpu_ppc64x_linux.go
+++ b/src/internal/cpu/cpu_ppc64x_linux.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ppc64 || ppc64le
-// +build ppc64 ppc64le
package cpu
diff --git a/src/internal/cpu/cpu_x86.go b/src/internal/cpu/cpu_x86.go
index 1582e832a4..81d5ceed61 100644
--- a/src/internal/cpu/cpu_x86.go
+++ b/src/internal/cpu/cpu_x86.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build 386 || amd64
-// +build 386 amd64
package cpu
diff --git a/src/internal/cpu/cpu_x86_test.go b/src/internal/cpu/cpu_x86_test.go
index de1c5fb3b0..0fef065f20 100644
--- a/src/internal/cpu/cpu_x86_test.go
+++ b/src/internal/cpu/cpu_x86_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build 386 || amd64
-// +build 386 amd64
package cpu_test
diff --git a/src/internal/fuzz/minimize_test.go b/src/internal/fuzz/minimize_test.go
index dd76baff51..13385e14d6 100644
--- a/src/internal/fuzz/minimize_test.go
+++ b/src/internal/fuzz/minimize_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin || linux || windows
-// +build darwin linux windows
package fuzz
diff --git a/src/internal/fuzz/sys_posix.go b/src/internal/fuzz/sys_posix.go
index ca6b1456e2..89c86c1ebb 100644
--- a/src/internal/fuzz/sys_posix.go
+++ b/src/internal/fuzz/sys_posix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin || linux
-// +build darwin linux
package fuzz
diff --git a/src/internal/fuzz/sys_unimplemented.go b/src/internal/fuzz/sys_unimplemented.go
index 827e36cf32..05954bb07f 100644
--- a/src/internal/fuzz/sys_unimplemented.go
+++ b/src/internal/fuzz/sys_unimplemented.go
@@ -4,7 +4,6 @@
// TODO(jayconrod): support more platforms.
//go:build !darwin && !linux && !windows
-// +build !darwin,!linux,!windows
package fuzz
diff --git a/src/internal/fuzz/trace.go b/src/internal/fuzz/trace.go
index ab0aeb41bd..cab0838fab 100644
--- a/src/internal/fuzz/trace.go
+++ b/src/internal/fuzz/trace.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !libfuzzer
-// +build !libfuzzer
package fuzz
diff --git a/src/internal/goarch/gengoarch.go b/src/internal/goarch/gengoarch.go
index af15518ad8..d146cc5bc9 100644
--- a/src/internal/goarch/gengoarch.go
+++ b/src/internal/goarch/gengoarch.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
diff --git a/src/internal/goarch/zgoarch_386.go b/src/internal/goarch/zgoarch_386.go
index 364367722f..4a9b0e67c4 100644
--- a/src/internal/goarch/zgoarch_386.go
+++ b/src/internal/goarch/zgoarch_386.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build 386
-// +build 386
package goarch
diff --git a/src/internal/goarch/zgoarch_amd64.go b/src/internal/goarch/zgoarch_amd64.go
index 8169580857..7926392b77 100644
--- a/src/internal/goarch/zgoarch_amd64.go
+++ b/src/internal/goarch/zgoarch_amd64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build amd64
-// +build amd64
package goarch
diff --git a/src/internal/goarch/zgoarch_arm.go b/src/internal/goarch/zgoarch_arm.go
index edc69f3349..6c03b8b060 100644
--- a/src/internal/goarch/zgoarch_arm.go
+++ b/src/internal/goarch/zgoarch_arm.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build arm
-// +build arm
package goarch
diff --git a/src/internal/goarch/zgoarch_arm64.go b/src/internal/goarch/zgoarch_arm64.go
index 0459376349..ad342d79c9 100644
--- a/src/internal/goarch/zgoarch_arm64.go
+++ b/src/internal/goarch/zgoarch_arm64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build arm64
-// +build arm64
package goarch
diff --git a/src/internal/goarch/zgoarch_arm64be.go b/src/internal/goarch/zgoarch_arm64be.go
index b9439c147e..0f26003090 100644
--- a/src/internal/goarch/zgoarch_arm64be.go
+++ b/src/internal/goarch/zgoarch_arm64be.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build arm64be
-// +build arm64be
package goarch
diff --git a/src/internal/goarch/zgoarch_armbe.go b/src/internal/goarch/zgoarch_armbe.go
index bbb07603d6..6092fee751 100644
--- a/src/internal/goarch/zgoarch_armbe.go
+++ b/src/internal/goarch/zgoarch_armbe.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build armbe
-// +build armbe
package goarch
diff --git a/src/internal/goarch/zgoarch_loong64.go b/src/internal/goarch/zgoarch_loong64.go
index 4d2cd70a00..21c67e1176 100644
--- a/src/internal/goarch/zgoarch_loong64.go
+++ b/src/internal/goarch/zgoarch_loong64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build loong64
-// +build loong64
package goarch
diff --git a/src/internal/goarch/zgoarch_mips.go b/src/internal/goarch/zgoarch_mips.go
index 25a8071727..0db1974655 100644
--- a/src/internal/goarch/zgoarch_mips.go
+++ b/src/internal/goarch/zgoarch_mips.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build mips
-// +build mips
package goarch
diff --git a/src/internal/goarch/zgoarch_mips64.go b/src/internal/goarch/zgoarch_mips64.go
index 907ae30ec4..738806f0ae 100644
--- a/src/internal/goarch/zgoarch_mips64.go
+++ b/src/internal/goarch/zgoarch_mips64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build mips64
-// +build mips64
package goarch
diff --git a/src/internal/goarch/zgoarch_mips64le.go b/src/internal/goarch/zgoarch_mips64le.go
index 3f4c369d16..8de5beb881 100644
--- a/src/internal/goarch/zgoarch_mips64le.go
+++ b/src/internal/goarch/zgoarch_mips64le.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build mips64le
-// +build mips64le
package goarch
diff --git a/src/internal/goarch/zgoarch_mips64p32.go b/src/internal/goarch/zgoarch_mips64p32.go
index d03e503c59..ea461bed70 100644
--- a/src/internal/goarch/zgoarch_mips64p32.go
+++ b/src/internal/goarch/zgoarch_mips64p32.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build mips64p32
-// +build mips64p32
package goarch
diff --git a/src/internal/goarch/zgoarch_mips64p32le.go b/src/internal/goarch/zgoarch_mips64p32le.go
index bbaa010ada..15473ce6c7 100644
--- a/src/internal/goarch/zgoarch_mips64p32le.go
+++ b/src/internal/goarch/zgoarch_mips64p32le.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build mips64p32le
-// +build mips64p32le
package goarch
diff --git a/src/internal/goarch/zgoarch_mipsle.go b/src/internal/goarch/zgoarch_mipsle.go
index b22be64d6e..4955142e87 100644
--- a/src/internal/goarch/zgoarch_mipsle.go
+++ b/src/internal/goarch/zgoarch_mipsle.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build mipsle
-// +build mipsle
package goarch
diff --git a/src/internal/goarch/zgoarch_ppc.go b/src/internal/goarch/zgoarch_ppc.go
index ed50bf8275..ec01763b3c 100644
--- a/src/internal/goarch/zgoarch_ppc.go
+++ b/src/internal/goarch/zgoarch_ppc.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build ppc
-// +build ppc
package goarch
diff --git a/src/internal/goarch/zgoarch_ppc64.go b/src/internal/goarch/zgoarch_ppc64.go
index 26b921d343..39be3925c8 100644
--- a/src/internal/goarch/zgoarch_ppc64.go
+++ b/src/internal/goarch/zgoarch_ppc64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build ppc64
-// +build ppc64
package goarch
diff --git a/src/internal/goarch/zgoarch_ppc64le.go b/src/internal/goarch/zgoarch_ppc64le.go
index de4fe0fb80..5f959e0e02 100644
--- a/src/internal/goarch/zgoarch_ppc64le.go
+++ b/src/internal/goarch/zgoarch_ppc64le.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build ppc64le
-// +build ppc64le
package goarch
diff --git a/src/internal/goarch/zgoarch_riscv.go b/src/internal/goarch/zgoarch_riscv.go
index 3eff474467..8d81a14dd9 100644
--- a/src/internal/goarch/zgoarch_riscv.go
+++ b/src/internal/goarch/zgoarch_riscv.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build riscv
-// +build riscv
package goarch
diff --git a/src/internal/goarch/zgoarch_riscv64.go b/src/internal/goarch/zgoarch_riscv64.go
index d99ab9dc29..1df989c2a6 100644
--- a/src/internal/goarch/zgoarch_riscv64.go
+++ b/src/internal/goarch/zgoarch_riscv64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build riscv64
-// +build riscv64
package goarch
diff --git a/src/internal/goarch/zgoarch_s390.go b/src/internal/goarch/zgoarch_s390.go
index 6d4ff71cc9..56815b9f43 100644
--- a/src/internal/goarch/zgoarch_s390.go
+++ b/src/internal/goarch/zgoarch_s390.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build s390
-// +build s390
package goarch
diff --git a/src/internal/goarch/zgoarch_s390x.go b/src/internal/goarch/zgoarch_s390x.go
index 6c215060a3..e61e9bd593 100644
--- a/src/internal/goarch/zgoarch_s390x.go
+++ b/src/internal/goarch/zgoarch_s390x.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build s390x
-// +build s390x
package goarch
diff --git a/src/internal/goarch/zgoarch_sparc.go b/src/internal/goarch/zgoarch_sparc.go
index 029e790fb0..ee5b746566 100644
--- a/src/internal/goarch/zgoarch_sparc.go
+++ b/src/internal/goarch/zgoarch_sparc.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build sparc
-// +build sparc
package goarch
diff --git a/src/internal/goarch/zgoarch_sparc64.go b/src/internal/goarch/zgoarch_sparc64.go
index bcd7b6f7df..519aaa10c1 100644
--- a/src/internal/goarch/zgoarch_sparc64.go
+++ b/src/internal/goarch/zgoarch_sparc64.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build sparc64
-// +build sparc64
package goarch
diff --git a/src/internal/goarch/zgoarch_wasm.go b/src/internal/goarch/zgoarch_wasm.go
index 0816c85a11..25567a1b64 100644
--- a/src/internal/goarch/zgoarch_wasm.go
+++ b/src/internal/goarch/zgoarch_wasm.go
@@ -1,7 +1,6 @@
// Code generated by gengoarch.go using 'go generate'. DO NOT EDIT.
//go:build wasm
-// +build wasm
package goarch
diff --git a/src/internal/goos/gengoos.go b/src/internal/goos/gengoos.go
index 1860cd700d..f8ddfcc7ff 100644
--- a/src/internal/goos/gengoos.go
+++ b/src/internal/goos/gengoos.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
diff --git a/src/internal/goos/zgoos_aix.go b/src/internal/goos/zgoos_aix.go
index 063e698b82..ff861550c4 100644
--- a/src/internal/goos/zgoos_aix.go
+++ b/src/internal/goos/zgoos_aix.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build aix
-// +build aix
package goos
diff --git a/src/internal/goos/zgoos_android.go b/src/internal/goos/zgoos_android.go
index e9e4864978..e8aaa12428 100644
--- a/src/internal/goos/zgoos_android.go
+++ b/src/internal/goos/zgoos_android.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build android
-// +build android
package goos
diff --git a/src/internal/goos/zgoos_darwin.go b/src/internal/goos/zgoos_darwin.go
index 309d6a2717..decdd49642 100644
--- a/src/internal/goos/zgoos_darwin.go
+++ b/src/internal/goos/zgoos_darwin.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build !ios && darwin
-// +build !ios,darwin
package goos
diff --git a/src/internal/goos/zgoos_dragonfly.go b/src/internal/goos/zgoos_dragonfly.go
index 4e8711b94c..2224baa230 100644
--- a/src/internal/goos/zgoos_dragonfly.go
+++ b/src/internal/goos/zgoos_dragonfly.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build dragonfly
-// +build dragonfly
package goos
diff --git a/src/internal/goos/zgoos_freebsd.go b/src/internal/goos/zgoos_freebsd.go
index f312bd1608..3ee5bf998e 100644
--- a/src/internal/goos/zgoos_freebsd.go
+++ b/src/internal/goos/zgoos_freebsd.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build freebsd
-// +build freebsd
package goos
diff --git a/src/internal/goos/zgoos_hurd.go b/src/internal/goos/zgoos_hurd.go
index 0f0dd28b81..8a3d34304d 100644
--- a/src/internal/goos/zgoos_hurd.go
+++ b/src/internal/goos/zgoos_hurd.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build hurd
-// +build hurd
package goos
diff --git a/src/internal/goos/zgoos_illumos.go b/src/internal/goos/zgoos_illumos.go
index 17e7c53a40..fc1b9a9e22 100644
--- a/src/internal/goos/zgoos_illumos.go
+++ b/src/internal/goos/zgoos_illumos.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build illumos
-// +build illumos
package goos
diff --git a/src/internal/goos/zgoos_ios.go b/src/internal/goos/zgoos_ios.go
index e4745ca413..746e769ef7 100644
--- a/src/internal/goos/zgoos_ios.go
+++ b/src/internal/goos/zgoos_ios.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build ios
-// +build ios
package goos
diff --git a/src/internal/goos/zgoos_js.go b/src/internal/goos/zgoos_js.go
index bd2417e9ce..6cf2a5d9e2 100644
--- a/src/internal/goos/zgoos_js.go
+++ b/src/internal/goos/zgoos_js.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build js
-// +build js
package goos
diff --git a/src/internal/goos/zgoos_linux.go b/src/internal/goos/zgoos_linux.go
index 476702f442..cb9d6e8afa 100644
--- a/src/internal/goos/zgoos_linux.go
+++ b/src/internal/goos/zgoos_linux.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build !android && linux
-// +build !android,linux
package goos
diff --git a/src/internal/goos/zgoos_netbsd.go b/src/internal/goos/zgoos_netbsd.go
index 97b7564bab..8285928d35 100644
--- a/src/internal/goos/zgoos_netbsd.go
+++ b/src/internal/goos/zgoos_netbsd.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build netbsd
-// +build netbsd
package goos
diff --git a/src/internal/goos/zgoos_openbsd.go b/src/internal/goos/zgoos_openbsd.go
index 384a96480d..3f739a4a2f 100644
--- a/src/internal/goos/zgoos_openbsd.go
+++ b/src/internal/goos/zgoos_openbsd.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build openbsd
-// +build openbsd
package goos
diff --git a/src/internal/goos/zgoos_plan9.go b/src/internal/goos/zgoos_plan9.go
index fcc279a79e..d4c1c651f7 100644
--- a/src/internal/goos/zgoos_plan9.go
+++ b/src/internal/goos/zgoos_plan9.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build plan9
-// +build plan9
package goos
diff --git a/src/internal/goos/zgoos_solaris.go b/src/internal/goos/zgoos_solaris.go
index 3f366cf710..69e3285ab6 100644
--- a/src/internal/goos/zgoos_solaris.go
+++ b/src/internal/goos/zgoos_solaris.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build !illumos && solaris
-// +build !illumos,solaris
package goos
diff --git a/src/internal/goos/zgoos_windows.go b/src/internal/goos/zgoos_windows.go
index dfa55339d3..16158be78b 100644
--- a/src/internal/goos/zgoos_windows.go
+++ b/src/internal/goos/zgoos_windows.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build windows
-// +build windows
package goos
diff --git a/src/internal/goos/zgoos_zos.go b/src/internal/goos/zgoos_zos.go
index 714f24963a..fb6165c7a1 100644
--- a/src/internal/goos/zgoos_zos.go
+++ b/src/internal/goos/zgoos_zos.go
@@ -1,7 +1,6 @@
// Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
//go:build zos
-// +build zos
package goos
diff --git a/src/internal/goroot/gc.go b/src/internal/goroot/gc.go
index 2338b78f3a..8c66cd13a8 100644
--- a/src/internal/goroot/gc.go
+++ b/src/internal/goroot/gc.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gc
-// +build gc
package goroot
diff --git a/src/internal/goroot/gccgo.go b/src/internal/goroot/gccgo.go
index b1041da11d..62841222a7 100644
--- a/src/internal/goroot/gccgo.go
+++ b/src/internal/goroot/gccgo.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gccgo
-// +build gccgo
package goroot
diff --git a/src/internal/poll/errno_unix.go b/src/internal/poll/errno_unix.go
index 55c548824f..c177519732 100644
--- a/src/internal/poll/errno_unix.go
+++ b/src/internal/poll/errno_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package poll
diff --git a/src/internal/poll/errno_windows.go b/src/internal/poll/errno_windows.go
index c55f5f0df5..3679aa8c4c 100644
--- a/src/internal/poll/errno_windows.go
+++ b/src/internal/poll/errno_windows.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build windows
-// +build windows
package poll
diff --git a/src/internal/poll/error_stub_test.go b/src/internal/poll/error_stub_test.go
index bcc25dd666..48e095254d 100644
--- a/src/internal/poll/error_stub_test.go
+++ b/src/internal/poll/error_stub_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !linux
-// +build !linux
package poll_test
diff --git a/src/internal/poll/export_posix_test.go b/src/internal/poll/export_posix_test.go
index f59c1f6dfa..3fcafac002 100644
--- a/src/internal/poll/export_posix_test.go
+++ b/src/internal/poll/export_posix_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
// Export guts for testing on posix.
// Since testing imports os and os imports internal/poll,
diff --git a/src/internal/poll/fcntl_js.go b/src/internal/poll/fcntl_js.go
index 7bf0ddc792..0f42ef61a5 100644
--- a/src/internal/poll/fcntl_js.go
+++ b/src/internal/poll/fcntl_js.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build js && wasm
-// +build js,wasm
package poll
diff --git a/src/internal/poll/fcntl_libc.go b/src/internal/poll/fcntl_libc.go
index cc609e48ad..f503d7a336 100644
--- a/src/internal/poll/fcntl_libc.go
+++ b/src/internal/poll/fcntl_libc.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || solaris
-// +build aix darwin solaris
package poll
diff --git a/src/internal/poll/fcntl_syscall.go b/src/internal/poll/fcntl_syscall.go
index 8db5b66504..accff5e043 100644
--- a/src/internal/poll/fcntl_syscall.go
+++ b/src/internal/poll/fcntl_syscall.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build dragonfly || freebsd || linux || netbsd || openbsd
-// +build dragonfly freebsd linux netbsd openbsd
package poll
diff --git a/src/internal/poll/fd_fsync_posix.go b/src/internal/poll/fd_fsync_posix.go
index 651a5ecd8b..6f17019e73 100644
--- a/src/internal/poll/fd_fsync_posix.go
+++ b/src/internal/poll/fd_fsync_posix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
-// +build aix dragonfly freebsd js,wasm linux netbsd openbsd solaris
package poll
diff --git a/src/internal/poll/fd_poll_js.go b/src/internal/poll/fd_poll_js.go
index 760e24802e..84bfcae633 100644
--- a/src/internal/poll/fd_poll_js.go
+++ b/src/internal/poll/fd_poll_js.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build js && wasm
-// +build js,wasm
package poll
diff --git a/src/internal/poll/fd_poll_runtime.go b/src/internal/poll/fd_poll_runtime.go
index b072af00ea..4a4dddfd27 100644
--- a/src/internal/poll/fd_poll_runtime.go
+++ b/src/internal/poll/fd_poll_runtime.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || windows || solaris
-// +build aix darwin dragonfly freebsd linux netbsd openbsd windows solaris
package poll
diff --git a/src/internal/poll/fd_posix.go b/src/internal/poll/fd_posix.go
index 487f3285ee..dc1e29c6b7 100644
--- a/src/internal/poll/fd_posix.go
+++ b/src/internal/poll/fd_posix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris || windows
-// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris windows
package poll
diff --git a/src/internal/poll/fd_posix_test.go b/src/internal/poll/fd_posix_test.go
index 1dcf51d419..0b7ef7a577 100644
--- a/src/internal/poll/fd_posix_test.go
+++ b/src/internal/poll/fd_posix_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
package poll_test
diff --git a/src/internal/poll/fd_unix.go b/src/internal/poll/fd_unix.go
index 5489662889..d4c32e4d41 100644
--- a/src/internal/poll/fd_unix.go
+++ b/src/internal/poll/fd_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris
package poll
diff --git a/src/internal/poll/fd_writev_darwin.go b/src/internal/poll/fd_writev_darwin.go
index 805fa2ccd9..8137510c8b 100644
--- a/src/internal/poll/fd_writev_darwin.go
+++ b/src/internal/poll/fd_writev_darwin.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package poll
diff --git a/src/internal/poll/fd_writev_illumos.go b/src/internal/poll/fd_writev_illumos.go
index a0b11ed5ae..79190c2f63 100644
--- a/src/internal/poll/fd_writev_illumos.go
+++ b/src/internal/poll/fd_writev_illumos.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build illumos
-// +build illumos
package poll
diff --git a/src/internal/poll/fd_writev_unix.go b/src/internal/poll/fd_writev_unix.go
index 87f284a56a..aa96d104c8 100644
--- a/src/internal/poll/fd_writev_unix.go
+++ b/src/internal/poll/fd_writev_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build dragonfly || freebsd || linux || netbsd || openbsd
-// +build dragonfly freebsd linux netbsd openbsd
package poll
diff --git a/src/internal/poll/hook_cloexec.go b/src/internal/poll/hook_cloexec.go
index d519f602c1..c941cb5235 100644
--- a/src/internal/poll/hook_cloexec.go
+++ b/src/internal/poll/hook_cloexec.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build dragonfly || freebsd || illumos || linux || netbsd || openbsd
-// +build dragonfly freebsd illumos linux netbsd openbsd
package poll
diff --git a/src/internal/poll/hook_unix.go b/src/internal/poll/hook_unix.go
index c88d65cdc8..c9aa4b4ca2 100644
--- a/src/internal/poll/hook_unix.go
+++ b/src/internal/poll/hook_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris
package poll
diff --git a/src/internal/poll/iovec_illumos.go b/src/internal/poll/iovec_illumos.go
index f4058b298f..00a65d7995 100644
--- a/src/internal/poll/iovec_illumos.go
+++ b/src/internal/poll/iovec_illumos.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build illumos
-// +build illumos
package poll
diff --git a/src/internal/poll/iovec_unix.go b/src/internal/poll/iovec_unix.go
index 6fd5d86630..c1500840ac 100644
--- a/src/internal/poll/iovec_unix.go
+++ b/src/internal/poll/iovec_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
-// +build darwin dragonfly freebsd linux netbsd openbsd
package poll
diff --git a/src/internal/poll/sendfile_bsd.go b/src/internal/poll/sendfile_bsd.go
index 5531e533c5..89315a8c67 100644
--- a/src/internal/poll/sendfile_bsd.go
+++ b/src/internal/poll/sendfile_bsd.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin || dragonfly || freebsd
-// +build darwin dragonfly freebsd
package poll
diff --git a/src/internal/poll/sock_cloexec.go b/src/internal/poll/sock_cloexec.go
index b3038290b9..d849fda0b0 100644
--- a/src/internal/poll/sock_cloexec.go
+++ b/src/internal/poll/sock_cloexec.go
@@ -6,7 +6,6 @@
// setting SetNonblock and CloseOnExec.
//go:build dragonfly || freebsd || illumos || linux || netbsd || openbsd
-// +build dragonfly freebsd illumos linux netbsd openbsd
package poll
diff --git a/src/internal/poll/sockopt.go b/src/internal/poll/sockopt.go
index 4f2e2fb455..2d354700c5 100644
--- a/src/internal/poll/sockopt.go
+++ b/src/internal/poll/sockopt.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
package poll
diff --git a/src/internal/poll/sockopt_unix.go b/src/internal/poll/sockopt_unix.go
index 4fb9600dee..54be1cc4b6 100644
--- a/src/internal/poll/sockopt_unix.go
+++ b/src/internal/poll/sockopt_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package poll
diff --git a/src/internal/poll/sockoptip.go b/src/internal/poll/sockoptip.go
index d86c4c1f81..7fc9aeefb3 100644
--- a/src/internal/poll/sockoptip.go
+++ b/src/internal/poll/sockoptip.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
package poll
diff --git a/src/internal/poll/strconv.go b/src/internal/poll/strconv.go
index c98332d3da..2b052fa174 100644
--- a/src/internal/poll/strconv.go
+++ b/src/internal/poll/strconv.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build plan9
-// +build plan9
package poll
diff --git a/src/internal/poll/sys_cloexec.go b/src/internal/poll/sys_cloexec.go
index 7e6d422d62..312ed24a44 100644
--- a/src/internal/poll/sys_cloexec.go
+++ b/src/internal/poll/sys_cloexec.go
@@ -6,7 +6,6 @@
// setting SetNonblock and CloseOnExec.
//go:build aix || darwin || (js && wasm) || (solaris && !illumos)
-// +build aix darwin js,wasm solaris,!illumos
package poll
diff --git a/src/internal/poll/writev.go b/src/internal/poll/writev.go
index 824de7569e..cd600b63d7 100644
--- a/src/internal/poll/writev.go
+++ b/src/internal/poll/writev.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
-// +build darwin dragonfly freebsd illumos linux netbsd openbsd
package poll
diff --git a/src/internal/syscall/execenv/execenv_default.go b/src/internal/syscall/execenv/execenv_default.go
index 73289f1cd0..335647c638 100644
--- a/src/internal/syscall/execenv/execenv_default.go
+++ b/src/internal/syscall/execenv/execenv_default.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package execenv
diff --git a/src/internal/syscall/execenv/execenv_windows.go b/src/internal/syscall/execenv/execenv_windows.go
index 6c0654943e..a8aa1a644e 100644
--- a/src/internal/syscall/execenv/execenv_windows.go
+++ b/src/internal/syscall/execenv/execenv_windows.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build windows
-// +build windows
package execenv
diff --git a/src/internal/syscall/unix/at.go b/src/internal/syscall/unix/at.go
index 9b08864f7f..447d48e198 100644
--- a/src/internal/syscall/unix/at.go
+++ b/src/internal/syscall/unix/at.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build linux || openbsd || netbsd || dragonfly
-// +build linux openbsd netbsd dragonfly
package unix
diff --git a/src/internal/syscall/unix/at_libc.go b/src/internal/syscall/unix/at_libc.go
index 4cc351ea27..f48d3791e3 100644
--- a/src/internal/syscall/unix/at_libc.go
+++ b/src/internal/syscall/unix/at_libc.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || solaris
-// +build aix solaris
package unix
diff --git a/src/internal/syscall/unix/at_sysnum_fstatat64_linux.go b/src/internal/syscall/unix/at_sysnum_fstatat64_linux.go
index 050d401bc0..445b0c3854 100644
--- a/src/internal/syscall/unix/at_sysnum_fstatat64_linux.go
+++ b/src/internal/syscall/unix/at_sysnum_fstatat64_linux.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm || mips || mipsle || 386
-// +build arm mips mipsle 386
package unix
diff --git a/src/internal/syscall/unix/at_sysnum_fstatat_linux.go b/src/internal/syscall/unix/at_sysnum_fstatat_linux.go
index e53a2d1b75..73a3da5bff 100644
--- a/src/internal/syscall/unix/at_sysnum_fstatat_linux.go
+++ b/src/internal/syscall/unix/at_sysnum_fstatat_linux.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build arm64 || riscv64
-// +build arm64 riscv64
package unix
diff --git a/src/internal/syscall/unix/at_sysnum_newfstatat_linux.go b/src/internal/syscall/unix/at_sysnum_newfstatat_linux.go
index 4cb4a5976b..76edf67522 100644
--- a/src/internal/syscall/unix/at_sysnum_newfstatat_linux.go
+++ b/src/internal/syscall/unix/at_sysnum_newfstatat_linux.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build amd64 || mips64 || mips64le || ppc64 || ppc64le || s390x
-// +build amd64 mips64 mips64le ppc64 ppc64le s390x
package unix
diff --git a/src/internal/syscall/unix/fcntl_linux_32bit.go b/src/internal/syscall/unix/fcntl_linux_32bit.go
index 46a4f6b030..7b39ee72bc 100644
--- a/src/internal/syscall/unix/fcntl_linux_32bit.go
+++ b/src/internal/syscall/unix/fcntl_linux_32bit.go
@@ -6,7 +6,6 @@
// If you change the build tags here, see syscall/flock_linux_32bit.go.
//go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle)
-// +build linux,386 linux,arm linux,mips linux,mipsle
package unix
diff --git a/src/internal/syscall/unix/getentropy_darwin.go b/src/internal/syscall/unix/getentropy_darwin.go
index c75006bf8b..7bab1f27b0 100644
--- a/src/internal/syscall/unix/getentropy_darwin.go
+++ b/src/internal/syscall/unix/getentropy_darwin.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build darwin && !ios
-// +build darwin,!ios
package unix
diff --git a/src/internal/syscall/unix/getrandom.go b/src/internal/syscall/unix/getrandom.go
index d2c58c0f6f..a6659331e4 100644
--- a/src/internal/syscall/unix/getrandom.go
+++ b/src/internal/syscall/unix/getrandom.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build dragonfly || freebsd || linux
-// +build dragonfly freebsd linux
package unix
diff --git a/src/internal/syscall/unix/nonblocking.go b/src/internal/syscall/unix/nonblocking.go
index a22986cb8a..9e5f0fb4a2 100644
--- a/src/internal/syscall/unix/nonblocking.go
+++ b/src/internal/syscall/unix/nonblocking.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build dragonfly || freebsd || linux || netbsd || openbsd
-// +build dragonfly freebsd linux netbsd openbsd
package unix
diff --git a/src/internal/syscall/unix/nonblocking_js.go b/src/internal/syscall/unix/nonblocking_js.go
index a5a5080d46..8ed40f3f91 100644
--- a/src/internal/syscall/unix/nonblocking_js.go
+++ b/src/internal/syscall/unix/nonblocking_js.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build js && wasm
-// +build js,wasm
package unix
diff --git a/src/internal/syscall/unix/nonblocking_libc.go b/src/internal/syscall/unix/nonblocking_libc.go
index d9565efcb6..75c6e92a6e 100644
--- a/src/internal/syscall/unix/nonblocking_libc.go
+++ b/src/internal/syscall/unix/nonblocking_libc.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build aix || darwin || solaris
-// +build aix darwin solaris
package unix
diff --git a/src/internal/syscall/unix/pipe2_illumos.go b/src/internal/syscall/unix/pipe2_illumos.go
index b0aac89580..c6280f85e5 100644
--- a/src/internal/syscall/unix/pipe2_illumos.go
+++ b/src/internal/syscall/unix/pipe2_illumos.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build illumos
-// +build illumos
package unix
diff --git a/src/internal/syscall/unix/sysnum_linux_generic.go b/src/internal/syscall/unix/sysnum_linux_generic.go
index a76025454c..3c5394a96b 100644
--- a/src/internal/syscall/unix/sysnum_linux_generic.go
+++ b/src/internal/syscall/unix/sysnum_linux_generic.go
@@ -3,8 +3,6 @@
// license that can be found in the LICENSE file.
//go:build linux && (arm64 || riscv64)
-// +build linux
-// +build arm64 riscv64
package unix
diff --git a/src/internal/syscall/unix/sysnum_linux_mips64x.go b/src/internal/syscall/unix/sysnum_linux_mips64x.go
index f353d4d73e..bca526d2b9 100644
--- a/src/internal/syscall/unix/sysnum_linux_mips64x.go
+++ b/src/internal/syscall/unix/sysnum_linux_mips64x.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build mips64 || mips64le
-// +build mips64 mips64le
package unix
diff --git a/src/internal/syscall/unix/sysnum_linux_mipsx.go b/src/internal/syscall/unix/sysnum_linux_mipsx.go
index 4ed471532a..c86195e496 100644
--- a/src/internal/syscall/unix/sysnum_linux_mipsx.go
+++ b/src/internal/syscall/unix/sysnum_linux_mipsx.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build mips || mipsle
-// +build mips mipsle
package unix
diff --git a/src/internal/syscall/unix/sysnum_linux_ppc64x.go b/src/internal/syscall/unix/sysnum_linux_ppc64x.go
index b484ffef80..a4dcf2bc9d 100644
--- a/src/internal/syscall/unix/sysnum_linux_ppc64x.go
+++ b/src/internal/syscall/unix/sysnum_linux_ppc64x.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ppc64 || ppc64le
-// +build ppc64 ppc64le
package unix
diff --git a/src/internal/syscall/unix/writev_illumos.go b/src/internal/syscall/unix/writev_illumos.go
index f60949f662..ee31be1302 100644
--- a/src/internal/syscall/unix/writev_illumos.go
+++ b/src/internal/syscall/unix/writev_illumos.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build illumos
-// +build illumos
package unix
diff --git a/src/internal/testenv/testenv_cgo.go b/src/internal/testenv/testenv_cgo.go
index 02f08f57c7..7426a29c1a 100644
--- a/src/internal/testenv/testenv_cgo.go
+++ b/src/internal/testenv/testenv_cgo.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build cgo
-// +build cgo
package testenv
diff --git a/src/internal/testenv/testenv_notwin.go b/src/internal/testenv/testenv_notwin.go
index 846ec93856..81171fd193 100644
--- a/src/internal/testenv/testenv_notwin.go
+++ b/src/internal/testenv/testenv_notwin.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package testenv