]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal: add a note about GOCACHE=off
authorAgniva De Sarker <agnivade@yahoo.co.in>
Tue, 19 Jun 2018 14:57:08 +0000 (20:27 +0530)
committerIan Lance Taylor <iant@golang.org>
Wed, 20 Jun 2018 20:29:55 +0000 (20:29 +0000)
Fixes #25928

Change-Id: I1401ecc54af26eeeee648bb8eeb5d2d3566fa60c
Reviewed-on: https://go-review.googlesource.com/119695
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index e7fbca25411a12460752af164da4e2f7e99e4b9f..fd281460b19a635c1da48f5e803700d960a30b8e 100644 (file)
 // in the standard user cache directory for the current operating system.
 // Setting the GOCACHE environment variable overrides this default,
 // and running 'go env GOCACHE' prints the current cache directory.
+// You can set the variable to 'off' to disable the cache.
 //
 // The go command periodically deletes cached data that has not been
 // used recently. Running 'go clean -cache' deletes all cached data.
index a90d19e976cbc71994baff23e4f2c3f13fe2fa4b..ce197965581b78e449b251a9d71572984c8c9d78 100644 (file)
@@ -658,6 +658,7 @@ The default location for cache data is a subdirectory named go-build
 in the standard user cache directory for the current operating system.
 Setting the GOCACHE environment variable overrides this default,
 and running 'go env GOCACHE' prints the current cache directory.
+You can set the variable to 'off' to disable the cache.
 
 The go command periodically deletes cached data that has not been
 used recently. Running 'go clean -cache' deletes all cached data.