Fix lib caching
parent
1b151ee71f
commit
f7ab429ff0
|
|
@ -668,7 +668,7 @@ class SetupRemoteRepository {
|
||||||
const latestLibraryCacheFile = yield remote_client_system_1.RemoteClientSystem.Run(`ls -t "${libraryCacheFolder}" | grep .zip$ | head -1`);
|
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}"`);
|
yield remote_client_system_1.RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
|
||||||
cloud_runner_logger_1.default.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
|
cloud_runner_logger_1.default.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
|
||||||
if (fs_1.default.existsSync(latestLibraryCacheFile)) {
|
if (fs_1.default.existsSync(path_1.default.join(libraryCacheFolder, latestLibraryCacheFile))) {
|
||||||
cloud_runner_logger_1.default.logCli(`Library cache exists`);
|
cloud_runner_logger_1.default.logCli(`Library cache exists`);
|
||||||
const latestCacheFilePath = path_1.default.join(libraryCacheFolder, latestLibraryCacheFile);
|
const latestCacheFilePath = path_1.default.join(libraryCacheFolder, latestLibraryCacheFile);
|
||||||
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
|
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -133,7 +133,7 @@ export class SetupRemoteRepository {
|
||||||
const latestLibraryCacheFile = await RemoteClientSystem.Run(`ls -t "${libraryCacheFolder}" | grep .zip$ | head -1`);
|
const latestLibraryCacheFile = await RemoteClientSystem.Run(`ls -t "${libraryCacheFolder}" | grep .zip$ | head -1`);
|
||||||
await RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
|
await RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
|
||||||
CloudRunnerLogger.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
|
CloudRunnerLogger.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
|
||||||
if (fs.existsSync(latestLibraryCacheFile)) {
|
if (fs.existsSync(path.join(libraryCacheFolder, latestLibraryCacheFile))) {
|
||||||
CloudRunnerLogger.logCli(`Library cache exists`);
|
CloudRunnerLogger.logCli(`Library cache exists`);
|
||||||
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
|
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
|
||||||
await RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
|
await RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue