Skip to content

Commit

Permalink
Is version.sbt still being included...
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Feb 22, 2024
1 parent f228ab5 commit 4004f33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cache.ts
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 4004f33

Please sign in to comment.