Yarn cache not found
See original GitHub issueDescription: I get repeated misses for the yarn cache: ```Run actions/setup-node@v2 with: node-version: 16.x check-latest: true cache: yarn always-auth: false token: *** Attempt to resolve the latest version from manifest… Resolved as ‘16.14.0’ Found in cache @ /opt/hostedtoolcache/node/16.14.0/x64 /usr/local/bin/yarn --version 1.22.17 /usr/local/bin/yarn cache dir /home/runner/.cache/yarn/v6
yarn cache is not found```
Action version: v2
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version: node-version: 16.x
Repro steps:
Public repo: https://github.com/Certora/rocket-joe-1/commit/ab70fe2af9afd51447945e0a3fcf6ad7745eff98
Expected behavior: Cache hit
Actual behavior: Cache miss after repeated reruns
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Keep getting yarn cache is not found · Issue #410 - GitHub
Description: Using yarn 1, continue getting yarn cache is not found on PRs that have run multiple times. Weirdly, this works on pull_request ......
Read more >How to cache yarn packages in GitHub Actions - Stack Overflow
Solution 3: Caching node_modules with actions/cache (NOT recommended) · yarn is good at utilizing global cache. If the dependencies are already ...
Read more >yarn cache
Yarn stores every package in a global cache in your user directory on the file system. yarn cache list will print out every...
Read more >Yarn caching doesn't work - Visual Studio Feedback
I'm trying to cache my yarn node_modules and following the examples in the documentation, I'm unable to get it work, it always gives...
Read more >Janic on Twitter: "Finally managed to properly cache yarn ...
Before I'd cache the yarn cache folder instead but still required yarn to copy files over from the cache to node_modules. Now I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @mdgeorge4153. Thank you for your report. Does the error still reproduce?
Preface: I’m on yarn@1.22.19 - can’t upgrade to 3 because of snyk 😕
I’ve been seeing this issue since enabling
cache: 'yarn'
Private repo unfortunately.I’ve tried doing a couple small pushes with no package.json or yarn.lock changes to see if those changes were causing the cache not to be found but no luck so far.