...
1# Test downloading a real GOTOOLCHAIN from the network.
2
3[short] skip
4[!net:golang.org] skip
5[!net:proxy.golang.org] skip
6[!net:sum.golang.org] skip
7[!GOOS:darwin] [!GOOS:windows] [!GOOS:linux] skip
8[!GOARCH:amd64] [!GOARCH:arm64] skip
9
10env GOPROXY=proxy.golang.org
11env GOSUMDB=sum.golang.org
12env GOTOOLCHAIN=go1.20.1
13
14 # Avoid resolving a "go1.20.1" from the user's real $PATH.
15 # That would not only cause the "downloading go1.20.1" message
16 # to be suppressed, but may spuriously fail:
17 # golang.org/dl/go1.20.1 expects to find its GOROOT in $HOME/sdk,
18 # but we set HOME=/no-home.
19env GOPATH=$WORK/go
20env HOME=/no-home
21env PATH=
22env path=
23
24go version
25stderr '^go: downloading go1.20.1 '
26stdout go1.20.1
View as plain text