From: Ian Lance Taylor Date: Fri, 28 Jan 2022 23:48:32 +0000 (-0800) Subject: cmd/go: document that GOENV=off disables the default config file X-Git-Tag: go1.18rc1~128 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=36b81acfa19d9fedf6a0cd60c394fd7a7703834e;p=gostls13.git cmd/go: document that GOENV=off disables the default config file Fixes #46840 Change-Id: Icc5475e312003e316dc039413a35089485163ba6 Reviewed-on: https://go-review.googlesource.com/c/go/+/381894 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Trust: Daniel Martí Reviewed-by: Daniel Martí Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 8e13a0f653..13a3f00d6f 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -2036,6 +2036,8 @@ // 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 diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go index 7dc066cfba..d1eaad1c12 100644 --- a/src/cmd/go/internal/help/helpdoc.go +++ b/src/cmd/go/internal/help/helpdoc.go @@ -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