|
|
|
@ -64018,7 +64018,7 @@ function restoreImpl(stateProvider) {
|
|
|
|
|
const enableCrossOsArchive = utils.getInputAsBool(constants_1.Inputs.EnableCrossOsArchive);
|
|
|
|
|
const failOnCacheMiss = utils.getInputAsBool(constants_1.Inputs.FailOnCacheMiss);
|
|
|
|
|
const lookupOnly = utils.getInputAsBool(constants_1.Inputs.LookupOnly);
|
|
|
|
|
const cacheKey = yield cache.restoreCache(cachePaths, primaryKey, restoreKeys, { lookupOnly: lookupOnly }, enableCrossOsArchive, s3config, s3BucketName);
|
|
|
|
|
const cacheKey = yield cache.restoreCache(cachePaths.slice(), primaryKey, restoreKeys, { lookupOnly: lookupOnly }, enableCrossOsArchive, s3config, s3BucketName);
|
|
|
|
|
if (!cacheKey) {
|
|
|
|
|
if (failOnCacheMiss) {
|
|
|
|
|
throw new Error(`Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: ${primaryKey}`);
|
|
|
|
|