Upgrading to node 16.5.0 disables caching dependencies?

using node 10, this caches dependencies, but after upgrading to node 16.5.0, it fetches the dependencies every time

docker:
    - image: circleci/node:10.14.2 // upgrade to circleci/node:16.5.0 or cimg/node:16.5.0
steps:
      - checkout
      - attach_workspace:
          at: ~/project
      - restore_cache:
          keys:
            - v1-0-dependencies-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
      - run:
          name: Install Dependencies
          command: yarn install --network-concurrency 1
      - save_cache:
          key: v1-0-dependencies-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
          paths:
            - node_modules
            - yarn.lock
      - persist_to_workspace:
          root: .
          paths:
            - .

hmm, maybe this is a yarn thing?
ive verified the cache key is the same, but yarn still fetches all the depenedencies

1 Like

ls -la indicates that node_modules exists after restoring the cache…
but yarn fetches and installs everything anyway…

1 Like