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; } /**