Closed RobjS closed 2 years ago
Thinking about this some more, it could probably do some other things to check that all is ok as well, e.g.
whippet.lock
is as expectedwhippet.lock
(i.e. a name, a src and a revision commit sha) for each of the dependencies listed in whippet.json
e.g.
whippet deps hash-check
, orwhippet deps validate
(could potentially also check they're both valid JSON)This would compare the expected hash based on
whippet.json
against the hash inwhippet.lock
, and return an error if they don't match.We could then include a test for this in CI, to prevent mismatched hashes attempting to deploy.