3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-12-25 14:26:59 +00:00

avoid calling cargo metadata on pre-cleanup

This commit is contained in:
Arpad Borsos 2022-11-03 11:26:22 +01:00
parent 19c46583c5
commit 3f2513fdf4
No known key found for this signature in database
GPG key ID: 570F20163159CB55
6 changed files with 63 additions and 40 deletions

View file

@ -43,9 +43,7 @@ async function run() {
// pre-clean the target directory on cache mismatch
for (const workspace of config.workspaces) {
try {
const packages = await workspace.getPackages();
await cleanTargetDir(workspace.target, packages, true);
await cleanTargetDir(workspace.target, [], true);
} catch {}
}
}