From 4004f336a63689077f047ec2946e76b2851521d9 Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Thu, 22 Feb 2024 15:41:59 +0000 Subject: [PATCH] Is version.sbt still being included... --- src/cache.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cache.ts b/src/cache.ts index b44d4813c..b1afc7d2d 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -93,13 +93,15 @@ async function computeCacheKey( const pattern = cacheDependencyPath ? cacheDependencyPath.trim().split('\n') : packageManager.pattern; - const fileHash = await glob.hashFiles(pattern.join('\n')); + const fileHash = await glob.hashFiles(pattern.join('\n'), verbose = true); if (!fileHash) { throw new Error( `No file in ${process.cwd()} matched to [${pattern}], make sure you have checked out the target repository` ); } - return `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`; + let cacheKey: string = `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`; + core.log(`cacheKey is ${cacheKey}`); + return cacheKey; } /**