]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update help for empty environment variables
authorSean Liao <sean@liao.dev>
Sun, 12 Mar 2023 02:34:04 +0000 (10:34 +0800)
committerGopher Robot <gobot@golang.org>
Sat, 20 May 2023 21:12:34 +0000 (21:12 +0000)
Fixes #50335

Change-Id: I44b9dc6afa8c70b5cc8c79fb3ebddc3f45d3cef8
Reviewed-on: https://go-review.googlesource.com/c/go/+/475695
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>

src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index 8bcbd3f7647eecc71a0cdd2a536c3c7fabfc5543..455a0f753631ab087d9329796f3df80de8180aa0 100644 (file)
 // # Environment variables
 //
 // The go command and the tools it invokes consult environment variables
-// for configuration. If an environment variable is unset, the go command
-// uses a sensible default setting. To see the effective setting of the
-// variable <NAME>, run 'go env <NAME>'. To change the default setting,
+// for configuration. If an environment variable is unset or empty, the go
+// command uses a sensible default setting. To see the effective setting of
+// the variable <NAME>, run 'go env <NAME>'. To change the default setting,
 // run 'go env -w <NAME>=<VALUE>'. Defaults changed using 'go env -w'
 // are recorded in a Go environment configuration file stored in the
 // per-user configuration directory, as reported by os.UserConfigDir.
index cf932136b30809ca36f4895d5545cbe0b98bfb00..03cda98bbf09b378adc60ff4b86313a9d1ee6b52 100644 (file)
@@ -471,9 +471,9 @@ var HelpEnvironment = &base.Command{
        Long: `
 
 The go command and the tools it invokes consult environment variables
-for configuration. If an environment variable is unset, the go command
-uses a sensible default setting. To see the effective setting of the
-variable <NAME>, run 'go env <NAME>'. To change the default setting,
+for configuration. If an environment variable is unset or empty, the go
+command uses a sensible default setting. To see the effective setting of
+the variable <NAME>, run 'go env <NAME>'. To change the default setting,
 run 'go env -w <NAME>=<VALUE>'. Defaults changed using 'go env -w'
 are recorded in a Go environment configuration file stored in the
 per-user configuration directory, as reported by os.UserConfigDir.