aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2020-07-07 14:17:30 -0400
committerJay Conrod <jayconrod@google.com>2020-07-13 17:48:55 +0000
commite88ea87e7b886815cfdadc4cd3d70bf5ef833bd7 (patch)
tree5259311a20d6863ee3f912b1c242468fb590b8cb
parent3a4322627e781c05418a8cc40ebb9f547a6c4ac8 (diff)
downloadgo-e88ea87e7b886815cfdadc4cd3d70bf5ef833bd7.tar.gz
go-e88ea87e7b886815cfdadc4cd3d70bf5ef833bd7.zip
cmd/go: include GOMODCACHE in 'go help environment'
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>
-rw-r--r--src/cmd/go/alldocs.go2
-rw-r--r--src/cmd/go/internal/help/helpdoc.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index 2316fb9991..68bad3cff1 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -1700,6 +1700,8 @@
// 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.
diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go
index b937a6155e..e1f0521ea4 100644
--- a/src/cmd/go/internal/help/helpdoc.go
+++ b/src/cmd/go/internal/help/helpdoc.go
@@ -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.