3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-29 06:35:53 +00:00
This commit is contained in:
Jonathan Kelley 2025-01-28 18:52:29 -08:00
parent 9fdf1295a5
commit acd5291606
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
2 changed files with 458 additions and 456 deletions

View file

@ -120,14 +120,16 @@ export class CacheConfig {
self.keyEnvs = keyEnvs;
key += `-${digest(hasher)}`;
self.restoreKey = key;
// Make sure we consider incremental builds
self.incremental = core.getInput("incremental").toLowerCase() == "true";
hasher.update(`incremental=${self.incremental}`);
key += `-${digest(hasher)}`;
self.restoreKey = key;
// Construct the lockfiles portion of the key:
// This considers all the files found via globbing for various manifests
// and lockfiles.