]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document GO{NO}SUMDB in 'go help environment' and 'go help modules'
authorTyler Bui-Palsulich <tbp@google.com>
Tue, 28 May 2019 19:50:01 +0000 (15:50 -0400)
committerTyler Bui-Palsulich <tbp@google.com>
Tue, 4 Jun 2019 20:57:36 +0000 (20:57 +0000)
GOSUMDB and GONOSUMDB are described in detail by
'go help module-auth'. So, this change mentions the two
variables and says to see 'go help module-auth'.

This also adds GONOPROXY to 'go help environment'.

Fixes #32292 and updates #32056.

Change-Id: I2eae0f906a3fbfcb88ad5c8fb4870917d0d7bbcd
Reviewed-on: https://go-review.googlesource.com/c/go/+/179219
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go
src/cmd/go/internal/modload/help.go

index 63470694cd44ea61c911d82c0aaefd56e676af7d..43f62e822dc3a4b2b4de66274e6106ae5eb389ee 100644 (file)
 //     GOPATH
 //             For more details see: 'go help gopath'.
 //     GOPROXY
-//             URL of Go module proxy. See 'go help goproxy'.
+//             URL of Go module proxy. See 'go help modules'.
+//     GONOPROXY
+//             Comma-separated list of glob patterns (in the syntax of Go's path.Match)
+//             of module path prefixes that should always be fetched directly, ignoring
+//             the GOPROXY setting. See 'go help modules'.
+//     GOSUMDB
+//             The name of checksum database to use and optionally its public key and
+//             URL. See 'go help module-auth'.
+//     GONOSUMDB
+//             Comma-separated list of glob patterns (in the syntax of Go's path.Match)
+//             of module path prefixes that should not be compared against the checksum
+//             database. See 'go help module-auth'.
 //     GOROOT
 //             The root of the go tree.
 //     GOTMPDIR
 // No matter the source of the modules, the go command checks downloads against
 // known checksums, to detect unexpected changes in the content of any specific
 // module version from one day to the next. This check first consults the current
-// module's go.sum file but falls back to the Go checksum database.
-// See 'go help module-auth' for details.
+// module's go.sum file but falls back to the Go checksum database, controlled by
+// the GOSUMDB and GONOSUMDB environment variables. See 'go help module-auth'
+// for details.
 //
 // See 'go help goproxy' for details about the proxy protocol and also
 // the format of the cached downloaded packages.
index 43ad57f2c0e15bb28b8bbea66c8eadda20a2e404..2cdd76c6cd4516b700181968f0581eef36e9a3be 100644 (file)
@@ -509,7 +509,18 @@ General-purpose environment variables:
        GOPATH
                For more details see: 'go help gopath'.
        GOPROXY
-               URL of Go module proxy. See 'go help goproxy'.
+               URL of Go module proxy. See 'go help modules'.
+       GONOPROXY
+               Comma-separated list of glob patterns (in the syntax of Go's path.Match)
+               of module path prefixes that should always be fetched directly, ignoring
+               the GOPROXY setting. See 'go help modules'.
+       GOSUMDB
+               The name of checksum database to use and optionally its public key and
+               URL. See 'go help module-auth'.
+       GONOSUMDB
+               Comma-separated list of glob patterns (in the syntax of Go's path.Match)
+               of module path prefixes that should not be compared against the checksum
+               database. See 'go help module-auth'.
        GOROOT
                The root of the go tree.
        GOTMPDIR
index 74ee985590a43a5ade4a1245bccfd7dd65dba955..5630524ca260585182e63d841bfb7b89cb5feb88 100644 (file)
@@ -365,8 +365,9 @@ for future go command invocations.
 No matter the source of the modules, the go command checks downloads against
 known checksums, to detect unexpected changes in the content of any specific
 module version from one day to the next. This check first consults the current
-module's go.sum file but falls back to the Go checksum database.
-See 'go help module-auth' for details.
+module's go.sum file but falls back to the Go checksum database, controlled by
+the GOSUMDB and GONOSUMDB environment variables. See 'go help module-auth'
+for details.
 
 See 'go help goproxy' for details about the proxy protocol and also
 the format of the cached downloaded packages.