Fix lib caching

pull/310/head
Frostebite 2021-12-27 03:47:49 +00:00
parent e57d9d0a83
commit 43e8b522ae
3 changed files with 5 additions and 3 deletions

3
dist/index.js vendored
View File

@ -669,7 +669,8 @@ class SetupRemoteRepository {
yield remote_client_system_1.RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
cloud_runner_logger_1.default.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
const latestCacheFilePath = path_1.default.join(libraryCacheFolder, latestLibraryCacheFile);
if (yield SetupRemoteRepository.checkFileExists(latestCacheFilePath)) {
process.chdir(libraryCacheFolder);
if (yield SetupRemoteRepository.checkFileExists(latestLibraryCacheFile)) {
cloud_runner_logger_1.default.logCli(`Library cache exists`);
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

@ -132,7 +132,8 @@ export class SetupRemoteRepository {
await RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
CloudRunnerLogger.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
if (await SetupRemoteRepository.checkFileExists(latestCacheFilePath)) {
process.chdir(libraryCacheFolder);
if (await SetupRemoteRepository.checkFileExists(latestLibraryCacheFile)) {
CloudRunnerLogger.logCli(`Library cache exists`);
await RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
} else {