]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify GODEBUG in go help environment
authorSean Liao <sean@liao.dev>
Thu, 28 Nov 2024 16:10:52 +0000 (16:10 +0000)
committerMichael Matloob <matloob@golang.org>
Thu, 9 Jan 2025 20:24:58 +0000 (12:24 -0800)
Fixes #37004
Fixes #50444

Change-Id: I7dd5a8c9bd0a2122ff38508cf509369d6d8ad599
Reviewed-on: https://go-review.googlesource.com/c/go/+/632177
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index 20d76de0c742e1300e5c647a226d784d4525f34d..830bac2b2f896571ffc670678acd432056d51faa 100644 (file)
 //             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'.
index 65d0f1a45c0c17ef32b3ccd62a1f97d4ec39136d..23459ef15413e377438a56cfc1dde2b51b502a1d 100644 (file)
@@ -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'.