]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document GOTOOLCHAIN
authorRuss Cox <rsc@golang.org>
Sat, 3 Jun 2023 21:30:47 +0000 (17:30 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jun 2023 12:28:52 +0000 (12:28 +0000)
For #57001.

Change-Id: I74c4abd675bd5636a029332b45ef0e6fdc36106f
Reviewed-on: https://go-review.googlesource.com/c/go/+/500795
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index b872b7abe3a0b0159fac6a45eecf3e53b2db15ab..7ef763d6be6239c9bf7b6c88f8ccdc9506d73df4 100644 (file)
 //             The operating system for which to compile code.
 //             Examples are linux, darwin, windows, netbsd.
 //     GOPATH
-//             For more details see: 'go help gopath'.
+//             Controls where various files are stored. See: 'go help gopath'.
 //     GOPROXY
 //             URL of Go module proxy. See https://golang.org/ref/mod#environment-variables
 //             and https://golang.org/ref/mod#module-proxy for details.
 //     GOSUMDB
 //             The name of checksum database to use and optionally its public key and
 //             URL. See https://golang.org/ref/mod#authenticating.
+//     GOTOOLCHAIN
+//             Controls which Go toolchain is used. See https://go.dev/doc/toolchain.
 //     GOTMPDIR
 //             The directory where the go command will write
 //             temporary source files, packages, and binaries.
index 03cda98bbf09b378adc60ff4b86313a9d1ee6b52..68ac4d229daeae3e41c66f864a5cee191e579450 100644 (file)
@@ -525,7 +525,7 @@ General-purpose environment variables:
                The operating system for which to compile code.
                Examples are linux, darwin, windows, netbsd.
        GOPATH
-               For more details see: 'go help gopath'.
+               Controls where various files are stored. See: 'go help gopath'.
        GOPROXY
                URL of Go module proxy. See https://golang.org/ref/mod#environment-variables
                and https://golang.org/ref/mod#module-proxy for details.
@@ -539,6 +539,8 @@ General-purpose environment variables:
        GOSUMDB
                The name of checksum database to use and optionally its public key and
                URL. See https://golang.org/ref/mod#authenticating.
+       GOTOOLCHAIN
+               Controls which Go toolchain is used. See https://go.dev/doc/toolchain.
        GOTMPDIR
                The directory where the go command will write
                temporary source files, packages, and binaries.