puppeteer-jest-starter icon indicating copy to clipboard operation
puppeteer-jest-starter copied to clipboard

fix CircleCI cache key mismatch

Open choznerol opened this issue 3 years ago • 0 comments

Since the retrieval of cache is 'prefix-matched' (https://circleci.com/docs/2.0/caching/#restoring-cache), currently L16 (v1-dependencies-{{ checksum "package-lock.json" }}) have no effect.

Another solution might be:

      - restore_cache:
          keys:
-         - v1-dependencies-{{ checksum "package-lock.json" }}
+         - v1-dependencies-{{ .Branch }}-{{ checksum "package-lock.json" }}
+         - v1-dependencies-{{ .Branch }}-
          - v1-dependencies-

... but the branch name doesn't seem to be relevant in this case.

choznerol avatar May 14 '21 10:05 choznerol