]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document that GOENV=off disables the default config file
authorIan Lance Taylor <iant@golang.org>
Fri, 28 Jan 2022 23:48:32 +0000 (15:48 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 1 Feb 2022 21:46:52 +0000 (21:46 +0000)
Fixes #46840

Change-Id: Icc5475e312003e316dc039413a35089485163ba6
Reviewed-on: https://go-review.googlesource.com/c/go/+/381894
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Trust: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

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

index 8e13a0f65386b9470e1a9dbccba7273b294caaf1..13a3f00d6fca30c2e6b892940da91683d8fc05e1 100644 (file)
 //     GOENV
 //             The location of the Go environment configuration file.
 //             Cannot be set using 'go env -w'.
+//             Setting GOENV=off in the environment disables the use of the
+//             default configuration file.
 //     GOFLAGS
 //             A space-separated list of -flag=value settings to apply
 //             to go commands by default, when the given flag is known by
index 7dc066cfbad6cc9262a9b3a451c1bf5d618ab95e..d1eaad1c126716aed21222f160bb1cd0ed6b5caf 100644 (file)
@@ -506,6 +506,8 @@ General-purpose environment variables:
        GOENV
                The location of the Go environment configuration file.
                Cannot be set using 'go env -w'.
+               Setting GOENV=off in the environment disables the use of the
+               default configuration file.
        GOFLAGS
                A space-separated list of -flag=value settings to apply
                to go commands by default, when the given flag is known by