@@ -60361,14 +60361,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
60361
60361
step((generator = generator.apply(thisArg, _arguments || [])).next());
60362
60362
});
60363
60363
};
60364
- var __importDefault = (this && this.__importDefault) || function (mod) {
60365
- return (mod && mod.__esModule) ? mod : { "default": mod };
60366
- };
60367
60364
Object.defineProperty(exports, "__esModule", ({ value: true }));
60368
60365
exports.run = void 0;
60369
60366
const core = __importStar(__nccwpck_require__(2186));
60370
60367
const cache = __importStar(__nccwpck_require__(7799));
60371
- const fs_1 = __importDefault(__nccwpck_require__(7147));
60372
60368
const constants_1 = __nccwpck_require__(9042);
60373
60369
const cache_utils_1 = __nccwpck_require__(1678);
60374
60370
// Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
@@ -60393,8 +60389,7 @@ exports.run = run;
60393
60389
const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, function* () {
60394
60390
const state = core.getState(constants_1.State.CacheMatchedKey);
60395
60391
const primaryKey = core.getState(constants_1.State.CachePrimaryKey);
60396
- let cachePaths = JSON.parse(core.getState(constants_1.State.CachePaths) || '[]');
60397
- cachePaths = cachePaths.filter(fs_1.default.existsSync);
60392
+ const cachePaths = JSON.parse(core.getState(constants_1.State.CachePaths) || '[]');
60398
60393
const packageManagerInfo = yield cache_utils_1.getPackageManagerInfo(packageManager);
60399
60394
if (!packageManagerInfo) {
60400
60395
core.debug(`Caching for '${packageManager}' is not supported`);
0 commit comments