Skip to content

Commit a56e180

Browse files
committed
Remove multiple restore key candidates
Restore keys invalidate user's wish to bust cache entries
1 parent a7dcc89 commit a56e180

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

dist/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -180546,9 +180546,8 @@ function main() {
180546180546
.pop();
180547180547
const depsPath = [external_path_.join(esyPrefix, esy3, "i")];
180548180548
const buildKey = `build-${index_platform}-${arch}-${cacheKey}`;
180549-
const restoreKeys = [`build-${index_platform}-${arch}-`, `build-`];
180550180549
core.startGroup("Restoring build cache");
180551-
const buildCacheKey = yield cache.restoreCache(depsPath, buildKey, restoreKeys);
180550+
const buildCacheKey = yield cache.restoreCache(depsPath, buildKey, []);
180552180551
if (buildCacheKey) {
180553180552
console.log("Restored the build cache");
180554180553
}

index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,9 @@ async function main() {
219219

220220
const depsPath = [path.join(esyPrefix, esy3!, "i")];
221221
const buildKey = `build-${platform}-${arch}-${cacheKey}`;
222-
const restoreKeys = [`build-${platform}-${arch}-`, `build-`];
223222

224223
core.startGroup("Restoring build cache");
225-
const buildCacheKey = await cache.restoreCache(
226-
depsPath,
227-
buildKey,
228-
restoreKeys
229-
);
224+
const buildCacheKey = await cache.restoreCache(depsPath, buildKey, []);
230225
if (buildCacheKey) {
231226
console.log("Restored the build cache");
232227
}

0 commit comments

Comments
 (0)