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

Fix Rust Cache invalid key warning #59

Merged
merged 10 commits into from
Oct 14, 2022
Merged

Fix Rust Cache invalid key warning #59

merged 10 commits into from
Oct 14, 2022

Conversation

AntoniosBarotsis
Copy link
Contributor

Addresses #43 by using the length of the feature string instead of the features themselves. This avoids the commas which were causing the issues and the key should be unique so long as the feature strings are of different lengths (which for the time being is the case).

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
Copy link
Member

@joshlf joshlf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for this!!

@joshlf joshlf merged commit 230820a into google:main Oct 14, 2022
joshlf pushed a commit that referenced this pull request Aug 3, 2023
The `Swatinem/rust-cache` GitHub action does not support commas
in its cache key, but we use the Cargo feature set (which can have commas)
as part of the cache key. This commit hashes the feature set to avoid this
problem.
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