3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-02-18 08:34:25 +00:00

clean nested and arbitrary profile and target directories

This commit is contained in:
Arpad Borsos 2022-07-09 16:14:38 +02:00
parent 827b33fbd0
commit 86bae2494f
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
5 changed files with 621 additions and 388 deletions

View file

@ -42,9 +42,9 @@ async function run() {
if (restoreKey !== key) {
// pre-clean the target directory on cache mismatch
for (const workspace of config.workspaces) {
const packages = await workspace.getPackages();
try {
const packages = await workspace.getPackages();
await cleanTargetDir(workspace.target, packages);
} catch {}
}