Fix lib caching
parent
5e031c9f66
commit
da5ffaa0b2
|
|
@ -668,11 +668,10 @@ 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`);
|
||||
const latestCacheFilePath = path_1.default.join(libraryCacheFolder, latestLibraryCacheFile);
|
||||
process.chdir(libraryCacheFolder);
|
||||
if (latestLibraryCacheFile !== '') {
|
||||
cloud_runner_logger_1.default.logCli(`Library cache exists`);
|
||||
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
|
||||
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestLibraryCacheFile}" -d "${cloud_runner_state_1.CloudRunnerState.libraryFolderFull}"`);
|
||||
}
|
||||
else {
|
||||
cloud_runner_logger_1.default.logCli(`Library cache doesn't exist`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -131,11 +131,10 @@ 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`);
|
||||
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
|
||||
process.chdir(libraryCacheFolder);
|
||||
if (latestLibraryCacheFile !== '') {
|
||||
CloudRunnerLogger.logCli(`Library cache exists`);
|
||||
await RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
|
||||
await RemoteClientSystem.Run(`unzip -q "${latestLibraryCacheFile}" -d "${CloudRunnerState.libraryFolderFull}"`);
|
||||
} else {
|
||||
CloudRunnerLogger.logCli(`Library cache doesn't exist`);
|
||||
if (latestLibraryCacheFile !== ``) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue