]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add README and access log to cache directory
authorRuss Cox <rsc@golang.org>
Thu, 2 Nov 2017 03:18:34 +0000 (23:18 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 3 Nov 2017 17:44:59 +0000 (17:44 +0000)
commit3392c0711def48dfd33e97dd636ebd50a85077a6
tree5a6c61a92cefb1e1a8d93d63c5dc279cd8d14a6e
parenta2b440239ddb07c52da6833a24125f973ee94c0e
cmd/go: add README and access log to cache directory

The README is there to help people who stumble across the directory.

The access log is there to help us evaluate potential algorithms for
managing and pruning cache directories. For now the management
is manual: users have to run "go clean -cache" if they want the cache
to get smaller.

As a low-resolution version of the access log, we also update the
mtime on each cache file as they are used by the go command.
A simple refinement of go clean -cache would be to delete
(perhaps automatically) cache files that have not been used in more
than one day, or some suitable time period.

Change-Id: I1dd6309952942169d71256c4b50b723583d21fca
Reviewed-on: https://go-review.googlesource.com/75471
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/dist/deps.go
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/cache/cache_test.go
src/cmd/go/internal/cache/default.go