From 512361fb1fa805f10f183e0b96248e523e68c192 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 3 Jun 2023 17:30:47 -0400 Subject: [PATCH] cmd/go: document GOTOOLCHAIN For #57001. Change-Id: I74c4abd675bd5636a029332b45ef0e6fdc36106f Reviewed-on: https://go-review.googlesource.com/c/go/+/500795 TryBot-Result: Gopher Robot Run-TryBot: Russ Cox Reviewed-by: Michael Matloob --- src/cmd/go/alldocs.go | 4 +++- src/cmd/go/internal/help/helpdoc.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index b872b7abe3..7ef763d6be 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -2173,7 +2173,7 @@ // 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. @@ -2187,6 +2187,8 @@ // 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. diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go index 03cda98bbf..68ac4d229d 100644 --- a/src/cmd/go/internal/help/helpdoc.go +++ b/src/cmd/go/internal/help/helpdoc.go @@ -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. -- 2.50.0