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 aca12d6 commit 1912e50
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/cache-save/index.js
Expand Up @@ -60345,6 +60345,8 @@ process.on('uncaughtException', e => {
});
function run() {
return __awaiter(this, void 0, void 0, function* () {
var stack = new Error().stack;
console.log(stack);
try {
yield cachePackages();
}
Expand Down Expand Up @@ -60466,8 +60468,6 @@ 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
4 changes: 2 additions & 2 deletions dist/setup/index.js
Expand Up @@ -63033,6 +63033,8 @@ const fs_1 = __importDefault(__nccwpck_require__(7147));
const constants_1 = __nccwpck_require__(9042);
const cache_utils_1 = __nccwpck_require__(1678);
const restoreCache = (versionSpec, packageManager, cacheDependencyPath) => __awaiter(void 0, void 0, void 0, function* () {
var stack = new Error().stack;
console.log(stack);
const packageManagerInfo = yield cache_utils_1.getPackageManagerInfo(packageManager);
const platform = process.env.RUNNER_OS;
const cachePaths = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo);
Expand Down Expand Up @@ -63139,8 +63141,6 @@ 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-restore.ts
Expand Up @@ -13,6 +13,8 @@ export const restoreCache = async (
packageManager: string,
cacheDependencyPath?: string
) => {
var stack = new Error().stack
console.log( stack )
const packageManagerInfo = await getPackageManagerInfo(packageManager);
const platform = process.env.RUNNER_OS;

Expand Down
2 changes: 2 additions & 0 deletions src/cache-save.ts
Expand Up @@ -13,6 +13,8 @@ process.on('uncaughtException', e => {
});

export async function run() {
var stack = new Error().stack
console.log( stack )
try {
await cachePackages();
} catch (error) {
Expand Down
2 changes: 0 additions & 2 deletions src/cache-utils.ts
Expand Up @@ -59,8 +59,6 @@ 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

0 comments on commit 1912e50

Please sign in to comment.