Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Use setup-go action cache. #3168

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jul 26, 2023

The latest version of the setup-go action now caches the go module and build cache by default, so it should no longer be done separately to avoid saving the same data under two different cache keys.

This updates the caching logic accordingly to remove those directories from the separate cache step and renames the step to reflect that it now only involves the lint cache.

Finally, while here, it also switches the key over to use the hash of the 'go.sum' file in the root of the repository as opposed to using the commit hash as it produces significantly less cache objects.

@davecgh davecgh added this to the 1.9.0 milestone Jul 26, 2023
The latest version of the setup-go action now caches the go module and
build cache by default, so it should no longer be done separately to
avoid saving the same data under two different cache keys.

This updates the caching logic accordingly to remove those directories
from the separate cache step and renames the step to reflect that it now
only involves the lint cache.

Finally, while here, it also switches the key over to use the hash of
the 'go.sum' file in the root of the repository as opposed to using the
commit hash as it produces significantly less cache objects.
@davecgh davecgh merged commit 9be168d into decred:master Aug 3, 2023
2 checks passed
@davecgh davecgh deleted the build_use_setup_go_cache branch August 3, 2023 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants