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

cache/restore fails to hit if same paths given in different order #1426

Open
mosteo opened this issue Jun 27, 2024 · 0 comments
Open

cache/restore fails to hit if same paths given in different order #1426

mosteo opened this issue Jun 27, 2024 · 0 comments

Comments

@mosteo
Copy link

mosteo commented Jun 27, 2024

As can be seen in this run, restore will hit or miss depending on the order of the paths given.

Not seen on that workflow, but if you use actions/cache/save, it will complain that the cache already exists despite a restore having reported a missed cache, if both use different orders.

Not a good practice on the user side to use different orders, but I guess that the actions could do some sorting to avoid this kind of pitfall.

KtorZ added a commit to KtorZ/cache that referenced this issue Mar 7, 2025
Thanks to this comment which saved me some headache: actions#1491 (comment)

related to actions#1561.
related to actions#1491.
related to actions#1426.
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

No branches or pull requests

1 participant