]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: include GOMODCACHE in 'go help environment'
authorJay Conrod <jayconrod@google.com>
Tue, 7 Jul 2020 18:17:30 +0000 (14:17 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 13 Jul 2020 17:48:55 +0000 (17:48 +0000)
Updates #34527
Fixes #40089

Change-Id: Ie9c8573536e5c31e874d755f4d888ffc805b796f
Reviewed-on: https://go-review.googlesource.com/c/go/+/241275
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index 2316fb9991dc89d5d7730109515d7eee3c5e3cd7..68bad3cff1b812d355b3647069d659597e12304d 100644 (file)
 //     GOCACHE
 //             The directory where the go command will store cached
 //             information for reuse in future builds.
+//     GOMODCACHE
+//             The directory where the go command will store downloaded modules.
 //     GODEBUG
 //             Enable various debugging facilities. See 'go doc runtime'
 //             for details.
index b937a6155ea5ad71397efc9579d3c1fcec4e7b5e..e1f0521ea412bf33857a7ec6c61bf3032d0987e4 100644 (file)
@@ -493,6 +493,8 @@ General-purpose environment variables:
        GOCACHE
                The directory where the go command will store cached
                information for reuse in future builds.
+       GOMODCACHE
+               The directory where the go command will store downloaded modules.
        GODEBUG
                Enable various debugging facilities. See 'go doc runtime'
                for details.