summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/gotoolchain_version.txt
blob: e0736ff980c5ccbd0f8501d24015d3482e096538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[!net:proxy.golang.org] skip

	# In the Go project's official release GOPROXY defaults to proxy.golang.org,
	# but it may be changed in GOROOT/go.env (such as in third-party
	# distributions).
	#
	# Make sure it is in use here, because the server for releases not served
	# through the proxy (https://golang.org/toolchain?go-get=1) currently only
	# serves the latest patch release for each of the supported stable releases.

[go-builder] env GOPROXY=
[!go-builder] env GOPROXY=https://proxy.golang.org

go list -m -versions go
stdout 1.20.1 # among others
stdout 1.19rc2
! stdout go1.20.1 # no go prefixes
! stdout go1.19rc2

go list -m -versions toolchain
stdout go1.20.1 # among others
stdout go1.19rc2