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:
parent
827b33fbd0
commit
86bae2494f
5 changed files with 621 additions and 388 deletions
|
|
@ -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 {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue