diff --git a/workflow-steps/cache/main.ts b/workflow-steps/cache/main.ts index e25a598..ec6d7ac 100644 --- a/workflow-steps/cache/main.ts +++ b/workflow-steps/cache/main.ts @@ -33,6 +33,8 @@ const baseBranchKeys = baseBranch ? [hashedKey].map((k) => `${baseBranch}-${k}`) : []; +console.log(`Expanded unhashed key is: ${key}\n`); + cacheClient .restore( new RestoreRequest({ diff --git a/workflow-steps/cache/output/main.js b/workflow-steps/cache/output/main.js index dd02faf..66160d7 100644 --- a/workflow-steps/cache/output/main.js +++ b/workflow-steps/cache/output/main.js @@ -6045,6 +6045,8 @@ var key = `${inputKey}|"${stringifiedPaths}"`; var hashedKey = hashKey(key); var currentBranchKeys = [hashedKey].map((k) => `${currentBranch}-${k}`); var baseBranchKeys = baseBranch ? [hashedKey].map((k) => `${baseBranch}-${k}`) : []; +console.log(`Expanded unhashed key is: ${key} +`); cacheClient.restore( new RestoreRequest({ keys: [...currentBranchKeys, ...baseBranchKeys] diff --git a/workflow-steps/cache/output/post.js b/workflow-steps/cache/output/post.js index 96d8f4d..d7b813c 100644 --- a/workflow-steps/cache/output/post.js +++ b/workflow-steps/cache/output/post.js @@ -6030,7 +6030,7 @@ if (!!cacheWasHit) { const stringifiedPaths = paths.join(","); const key = `${inputKey}|"${stringifiedPaths}"`; const hashedKey = hashKey(key); - console.log(`Expanded cache key is: ${key}`); + console.log(`Expanded unhashed cache key is: ${key}`); console.log("Storing the following directories:\n" + paths.join("\n")); console.log(` under hash: ${process.env.NX_BRANCH}-${hashedKey}`); diff --git a/workflow-steps/cache/post.ts b/workflow-steps/cache/post.ts index 8470b0d..a11b189 100644 --- a/workflow-steps/cache/post.ts +++ b/workflow-steps/cache/post.ts @@ -27,7 +27,7 @@ if (!!cacheWasHit) { const key = `${inputKey}|"${stringifiedPaths}"`; const hashedKey = hashKey(key); - console.log(`Expanded cache key is: ${key}`); + console.log(`Expanded unhashed cache key is: ${key}`); console.log('Storing the following directories:\n' + paths.join('\n')); console.log(`\nunder hash: ${process.env.NX_BRANCH}-${hashedKey}`);