...

Text file src/cmd/go/testdata/script/gotoolchain_version.txt

Documentation: cmd/go/testdata/script

     1[!net:proxy.golang.org] skip
     2
     3	# In the Go project's official release GOPROXY defaults to proxy.golang.org,
     4	# but it may be changed in GOROOT/go.env (such as in third-party
     5	# distributions).
     6	#
     7	# Make sure it is in use here, because the server for releases not served
     8	# through the proxy (https://golang.org/toolchain?go-get=1) currently only
     9	# serves the latest patch release for each of the supported stable releases.
    10
    11[go-builder] env GOPROXY=
    12[!go-builder] env GOPROXY=https://proxy.golang.org
    13
    14go list -m -versions go
    15stdout 1.20.1 # among others
    16stdout 1.19rc2
    17! stdout go1.20.1 # no go prefixes
    18! stdout go1.19rc2
    19
    20go list -m -versions toolchain
    21stdout go1.20.1 # among others
    22stdout go1.19rc2

View as plain text