Fix lib caching
parent
f7ab429ff0
commit
f2ef9335c1
|
|
@ -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"`);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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"`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue