aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
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/os/exec
parented475fe53ba41c0c15b11565f8b9d00165345bc2 (diff)
downloadgo-f229e7031a6efb2f23241b5da000c3b3203081d6.tar.xz
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/os/exec')
-rw-r--r--src/os/exec/exec_linux_test.go1
-rw-r--r--src/os/exec/exec_posix_test.go1
-rw-r--r--src/os/exec/exec_unix.go1
-rw-r--r--src/os/exec/exec_windows_test.go1
-rw-r--r--src/os/exec/lp_js.go1
-rw-r--r--src/os/exec/lp_unix.go1
-rw-r--r--src/os/exec/lp_unix_test.go1
-rw-r--r--src/os/exec/read3.go1
8 files changed, 0 insertions, 8 deletions
diff --git a/src/os/exec/exec_linux_test.go b/src/os/exec/exec_linux_test.go
index 3cfa30ee72..4a37c96e63 100644
--- a/src/os/exec/exec_linux_test.go
+++ b/src/os/exec/exec_linux_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build linux && cgo
-// +build linux,cgo
// On systems that use glibc, calling malloc can create a new arena,
// and creating a new arena can read /sys/devices/system/cpu/online.
diff --git a/src/os/exec/exec_posix_test.go b/src/os/exec/exec_posix_test.go
index 7b2c0c0c11..fd7fb42d36 100644
--- a/src/os/exec/exec_posix_test.go
+++ b/src/os/exec/exec_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
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package exec_test
diff --git a/src/os/exec/exec_unix.go b/src/os/exec/exec_unix.go
index 467c069e1c..c20f35276c 100644
--- a/src/os/exec/exec_unix.go
+++ b/src/os/exec/exec_unix.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !plan9 && !windows
-// +build !plan9,!windows
package exec
diff --git a/src/os/exec/exec_windows_test.go b/src/os/exec/exec_windows_test.go
index bd4dfb31da..8e31e47190 100644
--- a/src/os/exec/exec_windows_test.go
+++ b/src/os/exec/exec_windows_test.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build windows
-// +build windows
package exec_test
diff --git a/src/os/exec/lp_js.go b/src/os/exec/lp_js.go
index 4eac25fe6f..54ddc4d5b4 100644
--- a/src/os/exec/lp_js.go
+++ b/src/os/exec/lp_js.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build js && wasm
-// +build js,wasm
package exec
diff --git a/src/os/exec/lp_unix.go b/src/os/exec/lp_unix.go
index d1d246accf..38b9fc7c27 100644
--- a/src/os/exec/lp_unix.go
+++ b/src/os/exec/lp_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 exec
diff --git a/src/os/exec/lp_unix_test.go b/src/os/exec/lp_unix_test.go
index 9fded0eb0a..52e401e580 100644
--- a/src/os/exec/lp_unix_test.go
+++ b/src/os/exec/lp_unix_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
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package exec
diff --git a/src/os/exec/read3.go b/src/os/exec/read3.go
index a8c71831d8..8aae5735c4 100644
--- a/src/os/exec/read3.go
+++ b/src/os/exec/read3.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
// This is a test program that verifies that it can read from
// descriptor 3 and that no other descriptors are open.