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:
parent
19c46583c5
commit
3f2513fdf4
6 changed files with 63 additions and 40 deletions
|
|
@ -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 {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue