mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cleanup: remove cargo_cache
This commit is contained in:
parent
a5af6e8ef4
commit
11a6413fd0
@ -36,7 +36,7 @@ module CleanupRefinement
|
|||||||
end
|
end
|
||||||
|
|
||||||
def nested_cache?
|
def nested_cache?
|
||||||
directory? && %w[go_cache glide_home java_cache npm_cache gclient_cache].include?(basename.to_s)
|
directory? && %w[cargo_cache go_cache glide_home java_cache npm_cache gclient_cache].include?(basename.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
def go_cache_directory?
|
def go_cache_directory?
|
||||||
|
@ -225,6 +225,15 @@ describe Homebrew::Cleanup do
|
|||||||
expect(incomplete).not_to exist
|
expect(incomplete).not_to exist
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "cleans up 'cargo_cache'" do
|
||||||
|
cargo_cache = (HOMEBREW_CACHE/"cargo_cache")
|
||||||
|
cargo_cache.mkpath
|
||||||
|
|
||||||
|
subject.cleanup_cache
|
||||||
|
|
||||||
|
expect(cargo_cache).not_to exist
|
||||||
|
end
|
||||||
|
|
||||||
it "cleans up 'go_cache'" do
|
it "cleans up 'go_cache'" do
|
||||||
go_cache = (HOMEBREW_CACHE/"go_cache")
|
go_cache = (HOMEBREW_CACHE/"go_cache")
|
||||||
go_cache.mkpath
|
go_cache.mkpath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user