]> Cypherpunks repositories - gostls13.git/commit
cmd/go: implement go clean -testcache
authorRuss Cox <rsc@golang.org>
Sun, 12 Nov 2017 00:50:19 +0000 (19:50 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 16 Nov 2017 16:37:16 +0000 (16:37 +0000)
commitd06335e28f1a23fbb2a02f406e26bd2a9ec715d0
treec6992087d920f1235dbad8c9f2741573b3458080
parent5a7fd4039913f8bdb322b577ecf10a60ddcfedea
cmd/go: implement go clean -testcache

Ian suggested that since test caching is not expected to be perfect
in all cases, we should allow users to clear the test cache separately
from clearing the entire build cache.

This CL adds 'go clean -testcache' to do that. The implementation
does not actually delete files (for that, use 'go clean -cache').
Instead, it writes down the current time, and future go tests will
ignore any cached test results written before that time.

Change-Id: I4f84065d7dfc2499fa3f203e9ab62e68d7f367c5
Reviewed-on: https://go-review.googlesource.com/78176
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/go_test.go
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/clean/clean.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/work/buildid.go