go-build
directory should still be cached if a cache hit occured.
#569
Labels
feature request
New feature or request to improve the current logic
Description:
the Go build cache, among many things, stores the test cache. I propose that, even in the event of a cache hit, we save the
go-build
directory so that the new test results and build cache can be saved.Justification:
If the test cache does not get saved, then over a short period time, the cache that is saved will not be applicable. Saving the build cache even when there was a cache hit will result in less repeat test runs.
This could result in a much larger cache being stored. Maybe this should require a flag, like
cache-on-failure
?Are you willing to submit a PR?
Yes!
The text was updated successfully, but these errors were encountered: