Fix lib caching

pull/310/head
Frostebite 2021-12-27 01:56:16 +00:00
parent f7ab429ff0
commit f2ef9335c1
3 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@ -668,9 +668,9 @@ class SetupRemoteRepository {
const latestLibraryCacheFile = yield remote_client_system_1.RemoteClientSystem.Run(`ls -t "${libraryCacheFolder}" | grep .zip$ | head -1`);
yield remote_client_system_1.RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
cloud_runner_logger_1.default.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
if (fs_1.default.existsSync(path_1.default.join(libraryCacheFolder, latestLibraryCacheFile))) {
const latestCacheFilePath = path_1.default.join(libraryCacheFolder, latestLibraryCacheFile);
if (fs_1.default.existsSync(latestCacheFilePath)) {
cloud_runner_logger_1.default.logCli(`Library cache exists`);
const latestCacheFilePath = path_1.default.join(libraryCacheFolder, latestLibraryCacheFile);
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
}
});

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -133,9 +133,9 @@ export class SetupRemoteRepository {
const latestLibraryCacheFile = await RemoteClientSystem.Run(`ls -t "${libraryCacheFolder}" | grep .zip$ | head -1`);
await RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
CloudRunnerLogger.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
if (fs.existsSync(path.join(libraryCacheFolder, latestLibraryCacheFile))) {
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
if (fs.existsSync(latestCacheFilePath)) {
CloudRunnerLogger.logCli(`Library cache exists`);
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
await RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
}
}