mirror of https://github.com/actions/setup-go.git
build dist
This commit is contained in:
parent
8dc7165617
commit
a641f6c17f
|
@ -63036,9 +63036,18 @@ const restoreCache = (versionSpec, packageManager, cacheDependencyPath) => __awa
|
||||||
const packageManagerInfo = yield cache_utils_1.getPackageManagerInfo(packageManager);
|
const packageManagerInfo = yield cache_utils_1.getPackageManagerInfo(packageManager);
|
||||||
const platform = process.env.RUNNER_OS;
|
const platform = process.env.RUNNER_OS;
|
||||||
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
|
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
|
||||||
const dependencyFilePath = cacheDependencyPath
|
let dependencyFilePath;
|
||||||
|
try {
|
||||||
|
core.info('Trying to resolve lockfile path.');
|
||||||
|
dependencyFilePath = cacheDependencyPath
|
||||||
? cacheDependencyPath
|
? cacheDependencyPath
|
||||||
: findDependencyFile(packageManagerInfo);
|
: findDependencyFile(packageManagerInfo);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
core.info(e.message);
|
||||||
|
core.setOutput(constants_1.Outputs.CacheHit, false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
const fileHash = yield glob.hashFiles(dependencyFilePath);
|
const fileHash = yield glob.hashFiles(dependencyFilePath);
|
||||||
if (!fileHash) {
|
if (!fileHash) {
|
||||||
throw new Error('Some specified paths were not resolved, unable to cache dependencies.');
|
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);
|
const cachePaths = await getCacheDirectoryPath(packageManagerInfo);
|
||||||
|
|
||||||
let dependencyFilePath: string
|
let dependencyFilePath: string;
|
||||||
try {
|
try {
|
||||||
core.info('Trying to resolve lockfile path.');
|
core.info('Trying to resolve lockfile path.');
|
||||||
dependencyFilePath = cacheDependencyPath
|
dependencyFilePath = cacheDependencyPath
|
||||||
|
|
Loading…
Reference in New Issue