Fix lib caching

pull/310/head
Frostebite 2021-12-27 01:36:52 +00:00
parent 1b151ee71f
commit f7ab429ff0
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -668,7 +668,7 @@ 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(latestLibraryCacheFile)) {
if (fs_1.default.existsSync(path_1.default.join(libraryCacheFolder, latestLibraryCacheFile))) {
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,7 +133,7 @@ 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(latestLibraryCacheFile)) {
if (fs.existsSync(path.join(libraryCacheFolder, latestLibraryCacheFile))) {
CloudRunnerLogger.logCli(`Library cache exists`);
const latestCacheFilePath = path.join(libraryCacheFolder, latestLibraryCacheFile);
await RemoteClientSystem.Run(`unzip -q "${latestCacheFilePath}" -d "$projectPathFull"`);