File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -66227,9 +66227,8 @@ function restore(id) {
66227
66227
if (primaryKey.endsWith('-')) {
66228
66228
throw new Error(`No file in ${process.cwd()} matched to [${packageManager.pattern}], make sure you have checked out the target repository`);
66229
66229
}
66230
- const matchedKey = yield cache.restoreCache(packageManager.path, primaryKey, [
66231
- `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${id}`
66232
- ]);
66230
+ // No "restoreKeys" is set, to start with a clear cache after dependency update (see https://github.com/actions/setup-java/issues/269)
66231
+ const matchedKey = yield cache.restoreCache(packageManager.path, primaryKey);
66233
66232
if (matchedKey) {
66234
66233
core.saveState(CACHE_MATCHED_KEY, matchedKey);
66235
66234
core.setOutput('cache-hit', matchedKey === primaryKey);
Original file line number Diff line number Diff line change @@ -101432,9 +101432,8 @@ function restore(id) {
101432
101432
if (primaryKey.endsWith('-')) {
101433
101433
throw new Error(`No file in ${process.cwd()} matched to [${packageManager.pattern}], make sure you have checked out the target repository`);
101434
101434
}
101435
- const matchedKey = yield cache.restoreCache(packageManager.path, primaryKey, [
101436
- `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${id}`
101437
- ]);
101435
+ // No "restoreKeys" is set, to start with a clear cache after dependency update (see https://github.com/actions/setup-java/issues/269)
101436
+ const matchedKey = yield cache.restoreCache(packageManager.path, primaryKey);
101438
101437
if (matchedKey) {
101439
101438
core.saveState(CACHE_MATCHED_KEY, matchedKey);
101440
101439
core.setOutput('cache-hit', matchedKey === primaryKey);
Original file line number Diff line number Diff line change @@ -91,9 +91,8 @@ export async function restore(id: string) {
91
91
) ;
92
92
}
93
93
94
- const matchedKey = await cache . restoreCache ( packageManager . path , primaryKey , [
95
- `${ CACHE_KEY_PREFIX } -${ process . env [ 'RUNNER_OS' ] } -${ id } `
96
- ] ) ;
94
+ // No "restoreKeys" is set, to start with a clear cache after dependency update (see https://github.com/actions/setup-java/issues/269)
95
+ const matchedKey = await cache . restoreCache ( packageManager . path , primaryKey ) ;
97
96
if ( matchedKey ) {
98
97
core . saveState ( CACHE_MATCHED_KEY , matchedKey ) ;
99
98
core . setOutput ( 'cache-hit' , matchedKey === primaryKey ) ;
You can’t perform that action at this time.
0 commit comments