Skip to content

Commit

Permalink
debug Could not get cache folder paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Feb 14, 2023
1 parent da6ab1f commit aca12d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions dist/cache-save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60466,6 +60466,8 @@ const getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0,
output.value)
.map(output => output.value);
if (!cachePaths.length) {
var stack = new Error().stack;
console.log(stack);
throw new Error(`Could not get cache folder paths.`);
}
return cachePaths;
Expand Down
2 changes: 2 additions & 0 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63139,6 +63139,8 @@ const getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0,
output.value)
.map(output => output.value);
if (!cachePaths.length) {
var stack = new Error().stack;
console.log(stack);
throw new Error(`Could not get cache folder paths.`);
}
return cachePaths;
Expand Down
2 changes: 2 additions & 0 deletions src/cache-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export const getCacheDirectoryPath = async (
.map(output => (output as PromiseFulfilledResult<string>).value);

if (!cachePaths.length) {
var stack = new Error().stack
console.log( stack )
throw new Error(`Could not get cache folder paths.`);
}

Expand Down
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ export async function run() {
if (cache && isCacheFeatureAvailable()) {
const packageManager = 'default';
const cacheDependencyPath = core.getInput('cache-dependency-path');
try {
try {
await restoreCache(
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
);
} catch (e) {
core.warning(`Restore cache failed: ${e.message}`)
core.warning(`Restore cache failed: ${e.message}`);
}
}

Expand Down

0 comments on commit aca12d6

Please sign in to comment.