error computing cache key: template: cacheKey:1:41: executing "cacheKey" at <checksum "/tmp/node-project-lockfile">: error calling checksum: open /tmp/node-project-lockfile: no such file or directory
Expected behavior:
Caching step should complete without a lockfile present.
Orb version:
Latest
What happened:
If your project does not contain any lockfile at all, this logic falls through and does not copy anything to
$TARGET_DIR/node-project-lockfile
: https://github.com/CircleCI-Public/node-orb/blob/ab05d0e3718e32232bdd9c80a8ba6fac1c0bee02/src/scripts/packages/determine-lockfile.sh#L6-L16However, if you run this without
with-cache: false
, this step fails: https://github.com/CircleCI-Public/node-orb/blob/ab05d0e3718e32232bdd9c80a8ba6fac1c0bee02/src/commands/install-packages.yml#L70As:
Expected behavior:
Caching step should complete without a lockfile present.
Additional Information:
A quick fix would be to:
I wanted to do a PR, but seems I don't have sufficient access rights.