Skip to content

Commit

Permalink
also clear cargo .global cache when purging caches
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Jun 15, 2024
1 parent 30a83c9 commit 4a255f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ impl Workspace {
pub fn purge_all_caches(&self) -> Result<(), Error> {
let mut paths = vec![
self.cache_dir(),
self.cargo_home().join(".global-cache"),
self.cargo_home().join("git"),
self.cargo_home().join("registry").join("src"),
self.cargo_home().join("registry").join("cache"),
Expand Down

0 comments on commit 4a255f0

Please sign in to comment.