Debug cache extract

pull/310/head
Frostebite 2022-01-13 00:46:40 +00:00
parent 63cd4eda3d
commit dfc4001434
3 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -614,13 +614,13 @@ class Caching {
remote_client_logger_1.RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`);
console_1.assert(`${fs_1.default.existsSync(`${cacheSelection}.zip`)}`);
const fullDestination = path_1.default.join(cacheFolder, path_1.default.basename(destinationFolder));
const fullDestination = path_1.default.join(process.cwd(), path_1.default.basename(destinationFolder));
if (__1.Input.cloudRunnerTests) {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
}
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: path_1.default.basename(destinationFolder) });
yield extract_zip_1.default(`${cacheSelection}.zip`, { dir: fullDestination });
if (__1.Input.cloudRunnerTests) {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${fullDestination}`);
}
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -99,13 +99,13 @@ export class Caching {
RemoteClientLogger.log(`cache item exists ${cacheFolder}/${cacheSelection}.zip`);
assert(`${fs.existsSync(destinationFolder)}`);
assert(`${fs.existsSync(`${cacheSelection}.zip`)}`);
const fullDestination = path.join(cacheFolder, path.basename(destinationFolder));
const fullDestination = path.join(process.cwd(), path.basename(destinationFolder));
if (Input.cloudRunnerTests) {
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
}
await extract(`${cacheSelection}.zip`, { dir: path.basename(destinationFolder) });
await extract(`${cacheSelection}.zip`, { dir: fullDestination });
if (Input.cloudRunnerTests) {
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
await CloudRunnerSystem.Run(`tree ${fullDestination}`);
}
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
assert(`${fs.existsSync(fullDestination)}`);