mirror of
https://github.com/actions/setup-java
synced 2024-11-09 23:22:40 +00:00
Is version.sbt still being included...
This commit is contained in:
parent
f228ab54b9
commit
ed3ab602f8
3 changed files with 5980 additions and 4878 deletions
5370
dist/cleanup/index.js
vendored
5370
dist/cleanup/index.js
vendored
File diff suppressed because it is too large
Load diff
5370
dist/setup/index.js
vendored
5370
dist/setup/index.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -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'), undefined, undefined, 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}`;
|
||||
const cacheKey = `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}-${fileHash}`;
|
||||
core.info(`cacheKey is ${cacheKey}`);
|
||||
return cacheKey;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue