• Russ Cox's avatar
    cmd/go: add README and access log to cache directory · 3392c071
    Russ Cox authored
    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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    3392c071
deps.go 27.2 KB