aboutsummaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2023-03-29 18:03:26 -0400
committerGopher Robot <gobot@golang.org>2023-03-30 15:55:17 +0000
commit92261b38638af61a3aae2fdc48fd0b9f0cbff096 (patch)
tree65f35c9c0c64afd36af1cd28ec4679051e366463 /src/run.bash
parent383a4e78861218bd861632d6cdcac6c8af6a5470 (diff)
downloadgo-92261b38638af61a3aae2fdc48fd0b9f0cbff096.tar.gz
go-92261b38638af61a3aae2fdc48fd0b9f0cbff096.zip
run.bash: drop 'export GOROOT' and its obsolete comment
The comment justifies exporting GOROOT by saying the api test needs it, which was relevant back when it was added in CL 99870043, but isn't true by now. As of Go 1.8, GOPATH can be unset (https://go.dev/doc/go1.8#gopath). At some point it also became okay to leave GOROOT unset, at least whenever one is looking to use the default GOROOT tree of the go command being executed and not intentionally changing it to a custom directory. It's also not there in the .bat and .rc variants of this script. Drop it. Change-Id: Ibcb386c560523fcfbfec8020f90692dcfa5aa686 Reviewed-on: https://go-review.googlesource.com/c/go/+/480376 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/run.bash b/src/run.bash
index 6274df6fb3..badb8c60e2 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -31,7 +31,6 @@ fi
export GOENV=off
eval $(../bin/go tool dist env)
-export GOROOT # The api test requires GOROOT to be set, so set it to match ../bin/go.
unset CDPATH # in case user has it set