Skip to content

Commit

Permalink
Include image version in computed cache key (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
orudge authored Feb 8, 2021
1 parent 205a4bd commit 619bc42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vcpkg-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ export class Utils {
}

key += "-args=" + Utils.hashCode(core.getInput(runvcpkglib.vcpkgArguments));
key += "-os=" + Utils.hashCode(process.platform);
key += "-os=" + Utils.hashCode(process.env.ImageOS ? process.env.ImageOS : process.platform);

if (process.env.ImageVersion) {
key += "-imageVer=" + Utils.hashCode(process.env.ImageVersion);
}

key += "-appendedKey=" + Utils.hashCode(appendedCacheKey);

// Add the triplet only if it is provided.
Expand Down

0 comments on commit 619bc42

Please sign in to comment.