For #57001.
Change-Id: Idcc291c872864bcce7e6d411cdd208db3b331282
Reviewed-on: https://go-review.googlesource.com/c/go/+/499855
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Bypass: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
env GOPROXY=
env GOSUMDB=
env GOTOOLCHAIN=go1.20.1
+
+ # Avoid resolving a "go1.20.1" from the user's real $PATH.
+ # That would not only cause the "downloading go1.20.1" message
+ # to be suppressed, but may spuriously fail:
+ # golang.org/dl/go1.20.1 expects to find its GOROOT in $HOME/sdk,
+ # but the script environment sets HOME=/no-home.
+env PATH=
+env path=
+
go version
stderr '^go: downloading go1.20.1 '
stdout go1.20.1