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.

Cache not found for input keys

See original GitHub issue

Not sure what I’m missing here:

jobs:
  tests:
    name: Run all tests
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup node 14
        uses: actions/setup-node@v1
        with:
          node-version: 14.x
      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"
      - uses: actions/cache@v2
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)yarn cache dir
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-

Screen Shot 2020-12-23 at 2 42 01 AM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

1reaction
linonetwocommented, May 5, 2022

Oh, most of issuer above is using v2, let me try v3! One of my friends’ new repo that is using v3 is working nicely.

0reactions
vsvipulcommented, May 7, 2022

Yes, package-lock file only changes after doing npm i. So, this should be the reason. Closing now. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cache not found because action searches for "<key>, <key ...
As you see in the text, this failure happens on Windows. I am doing the same under Ubuntu, but then there is no...
Read more >
Actions/cache: Cache not being hit despite of being present
Cache's are scoped to a key and a branch, so a cache created on branch-A won't be accessible by branch-B unless branch-A is...
Read more >
Using Github action cache - Questions / Help - Elixir Forum
I am using github actions to run tests for my Elixir repo. Here is part of my github workflow .yml: steps: - uses:...
Read more >
GitHub Action caching - David Gardiner
Here's the cache action that I'm using for my Show Missing extension. - uses: actions/cache@v2 with: path: ${{ github.workspace }}/.nuget/ ...
Read more >
actions - Bountysource
Cache not found for input keys : Windows-gradle-... But then in each "Post Cache Gradle dependency cache" step, it says: [warning]Cache already exists ......
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