Skip to content

How generating a key via hashFiles is supposed to work if the cache is not yet restored? #791

Answered by dhadka
leshikus asked this question in Q&A

You must be logged in to vote

The idea is that you're computing the hash of files already checked into the repo. For the case of package-lock.json, NPM recommends checking in this file as it contains the exact dependencies and versions used by your program (more details at https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json).

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@leshikus

Answer selected by leshikus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants