mirror of
https://github.com/golang/go
synced 2024-11-23 05:40:04 -07:00
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>
This commit is contained in:
parent
383a4e7886
commit
92261b3863
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user