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

Use case-insensitive key comparison for cache keys #660

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BytewaveMLP
Copy link

@BytewaveMLP BytewaveMLP commented Oct 21, 2024

Following the discussion in #659, this PR introduces a case-insensitive cache key comparison function to compare the cache key returned from @actions/cache versus the calculated cache key for the purposes of partial-hits.

This implementation follows that which is used in actions/cache. Unfortunately, that implementation isn't in the accompanying Node package, so I've copied it here.

Closes #659

@BytewaveMLP BytewaveMLP force-pushed the case-insensitive-key-compare branch from 44fd20c to b4d6987 Compare October 21, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Cache keys are treated as case-sensitive, but case is not preserved in all environments
1 participant