]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/cache: implement build artifact cache
authorRuss Cox <rsc@golang.org>
Sat, 19 Aug 2017 04:20:00 +0000 (00:20 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 2 Nov 2017 03:32:31 +0000 (03:32 +0000)
commit1114d403fa7d16247a3c569978290d0827f224a1
tree98e1e5101015d64d6217ed46e3ca6a18a5dae47a
parenta0dfd82f41145bd41b765d9fb13bc2c10c659571
cmd/go/internal/cache: implement build artifact cache

The cache is stored in $GOCACHE, which is printed by go env and
defaults to a subdirectory named "go-build" in the standard user cache
directory for the host operating system.

This CL only implements the cache. Future CLs will store data in it.

Change-Id: I0b4965a9e50f852e17e44ec3d6dafe05b58f0d22
Reviewed-on: https://go-review.googlesource.com/68116
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@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 [new file with mode: 0644]
src/cmd/go/internal/cache/default.go [new file with mode: 0644]
src/cmd/go/internal/cache/hash.go
src/cmd/go/internal/cache/hash_test.go
src/cmd/go/internal/work/action.go
src/cmd/go/internal/work/buildid.go