home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529e362
)
Note why I chose 'rm -rf' instead of 'cargo clean'
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 19 Apr 2023 16:46:38 +0000
(12:46 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 19 Apr 2023 16:46:38 +0000
(12:46 -0400)
home/bin/cargo-clean-all
patch
|
blob
|
blame
|
history
diff --git
a/home/bin/cargo-clean-all
b/home/bin/cargo-clean-all
index
2e5b02a
..
fb3af47
100755
(executable)
--- a/
home/bin/cargo-clean-all
+++ b/
home/bin/cargo-clean-all
@@
-6,6
+6,8
@@
main() {
local -r dir="${1-$HOME}"
local -r jobs="${1-$N_CPUS}"
+ # XXX Just doing 'rm -rf' because 'cargo clean' starts doing extra work
+ # and in some cases even downloads new deps, etc.
find "$dir" -type f -name Cargo.toml -print0 \
| xargs -0 -I % -P "$jobs" sh -c 'rm -rf $(dirname "%")/target'
}
This page took
0.018413 seconds
and
4
git commands to generate.