Skip to content

Commit f3f7bd5

Browse files
agnivadeianlancetaylor
authored andcommitted
cmd/go/internal: add a note about GOCACHE=off
Fixes #25928 Change-Id: I1401ecc54af26eeeee648bb8eeb5d2d3566fa60c Reviewed-on: https://go-review.googlesource.com/119695 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent ee9c939 commit f3f7bd5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/cmd/go/alldocs.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/help/helpdoc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ The default location for cache data is a subdirectory named go-build
658658
in the standard user cache directory for the current operating system.
659659
Setting the GOCACHE environment variable overrides this default,
660660
and running 'go env GOCACHE' prints the current cache directory.
661+
You can set the variable to 'off' to disable the cache.
661662
662663
The go command periodically deletes cached data that has not been
663664
used recently. Running 'go clean -cache' deletes all cached data.

0 commit comments

Comments
 (0)