mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
build dist
This commit is contained in:
parent
8dc7165617
commit
a641f6c17f
2 changed files with 13 additions and 4 deletions
15
dist/setup/index.js
vendored
15
dist/setup/index.js
vendored
|
@ -63036,9 +63036,18 @@ const restoreCache = (versionSpec, packageManager, cacheDependencyPath) => __awa
|
|||
const packageManagerInfo = yield cache_utils_1.getPackageManagerInfo(packageManager);
|
||||
const platform = process.env.RUNNER_OS;
|
||||
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
|
||||
const dependencyFilePath = cacheDependencyPath
|
||||
? cacheDependencyPath
|
||||
: findDependencyFile(packageManagerInfo);
|
||||
let dependencyFilePath;
|
||||
try {
|
||||
core.info('Trying to resolve lockfile path.');
|
||||
dependencyFilePath = cacheDependencyPath
|
||||
? cacheDependencyPath
|
||||
: findDependencyFile(packageManagerInfo);
|
||||
}
|
||||
catch (e) {
|
||||
core.info(e.message);
|
||||
core.setOutput(constants_1.Outputs.CacheHit, false);
|
||||
return;
|
||||
}
|
||||
const fileHash = yield glob.hashFiles(dependencyFilePath);
|
||||
if (!fileHash) {
|
||||
throw new Error('Some specified paths were not resolved, unable to cache dependencies.');
|
||||
|
|
|
@ -18,7 +18,7 @@ export const restoreCache = async (
|
|||
|
||||
const cachePaths = await getCacheDirectoryPath(packageManagerInfo);
|
||||
|
||||
let dependencyFilePath: string
|
||||
let dependencyFilePath: string;
|
||||
try {
|
||||
core.info('Trying to resolve lockfile path.');
|
||||
dependencyFilePath = cacheDependencyPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue