question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn cache not found

See original GitHub issue

Description: 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dmitry-shibanovcommented, Mar 28, 2022

Hello @mdgeorge4153. Thank you for your report. Does the error still reproduce?

0reactions
just-Bricommented, Oct 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found