aboutsummaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2022-07-28 15:29:38 -0400
committerBryan Mills <bcmills@google.com>2022-08-17 20:19:28 +0000
commit9c2b481b57aea1ee69b2131c09af1e0dc0ea84d8 (patch)
treed59bb5520b50710586c6682988443161b318a1c8 /src/run.bash
parent876d477b0e3b27ae136a7e8dfceaf0ec72bddea6 (diff)
downloadgo-9c2b481b57aea1ee69b2131c09af1e0dc0ea84d8.tar.xz
run: set GOENV=off when running 'go tool dist env'
'go tool' sets environment variables, including the GOAMD64 value from the user's go.env file. 'go tool dist test' then rebuilds and reinstalls the toolchain and standard library based on those variables. It should not; instead, it should test exactly the configuration installed by the make scripts. Fixes #54084. Change-Id: I7cc8a21cc1d8331e06d7b7c55b14d170f8e2faab Reviewed-on: https://go-review.googlesource.com/c/go/+/420055 Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/run.bash b/src/run.bash
index 99b09fcbde..4f4d437365 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -21,6 +21,7 @@ if [ ! -f ../bin/go ]; then
exit 1
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.