Skip to content

Commit

Permalink
Include image version in computed cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
orudge committed Feb 8, 2021
1 parent 205a4bd commit 0264890
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.IMAGE_OS ? process.env.IMAGE_OS : process.platform);

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

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

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

0 comments on commit 0264890

Please sign in to comment.