From: Sean Liao Date: Thu, 28 Nov 2024 16:10:52 +0000 (+0000) Subject: cmd/go: clarify GODEBUG in go help environment X-Git-Tag: go1.24rc3~2^2~56 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c7c4420ae4;p=gostls13.git cmd/go: clarify GODEBUG in go help environment Fixes #37004 Fixes #50444 Change-Id: I7dd5a8c9bd0a2122ff38508cf509369d6d8ad599 Reviewed-on: https://go-review.googlesource.com/c/go/+/632177 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 20d76de0c7..830bac2b2f 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -2338,8 +2338,9 @@ // external go command build cache. // See 'go doc cmd/go/internal/cacheprog'. // GODEBUG -// Enable various debugging facilities. See https://go.dev/doc/godebug -// for details. +// Enable various debugging facilities for programs built with Go, +// including the go command. Cannot be set using 'go env -w'. +// See https://go.dev/doc/godebug for details. // GOENV // The location of the Go environment configuration file. // Cannot be set using 'go env -w'. diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go index 65d0f1a45c..23459ef154 100644 --- a/src/cmd/go/internal/help/helpdoc.go +++ b/src/cmd/go/internal/help/helpdoc.go @@ -511,8 +511,9 @@ General-purpose environment variables: external go command build cache. See 'go doc cmd/go/internal/cacheprog'. GODEBUG - Enable various debugging facilities. See https://go.dev/doc/godebug - for details. + Enable various debugging facilities for programs built with Go, + including the go command. Cannot be set using 'go env -w'. + See https://go.dev/doc/godebug for details. GOENV The location of the Go environment configuration file. Cannot be set using 'go env -w'.