Skip to content

Commit 44a45a4

Browse files
committed
Include ASDF version in restore key so we never restore a cache if the asdf-version was changed asdf-vm#235
1 parent 0bb1d7b commit 44a45a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/install/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ async function restoreAsdfCache() {
3131
`${process.env.ASDF_DIR!}/plugins`,
3232
`${process.env.ASDF_DIR!}/installs`,
3333
];
34-
3534
const restoreKeys = [
36-
'asdf-tools-',
35+
`asdf-tools-${asdfVersion}-`,
3736
];
3837

3938
core.debug(`Restoring ${paths.join(', ')} from cache with key "${cacheKey}" using restore keys "${restoreKeys.join(', ')}"`);

0 commit comments

Comments
 (0)