Skip to content

Commit 26202fd

Browse files
committed
Fix cache paths
1 parent 726952f commit 26202fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/installers/installer.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default abstract class Installer {
4343
.createHash('sha256')
4444
.update(requestedPackages)
4545
.digest('base64');
46+
core.debug(`Requested packages key: ${this.requestedPackagesKey}`);
4647
this.saveBinCache = this.actionInputs.cache !== Cache.NOTHING;
4748
}
4849

@@ -96,7 +97,9 @@ export default abstract class Installer {
9697
this.actionInputs.channel,
9798
'cargo',
9899
'install',
99-
'--list'
100+
'--list',
101+
'--root',
102+
SUBCOMMANDS_PATH
100103
])
101104
).stdout;
102105
core.info(`Computing key for packages:\n${packageInformation}`);
@@ -156,6 +159,9 @@ export default abstract class Installer {
156159
this.actionInputs.channel,
157160
'cargo',
158161
'uninstall',
162+
...(this.actionInputs.cache === Cache.NOTHING
163+
? []
164+
: ['--root', ROOT_INSTALL_PATH]),
159165
'cargo-binstall'
160166
]);
161167
}

0 commit comments

Comments
 (0)