Skip to content
Snippets Groups Projects
Commit 3205ace1 authored by Bo Anderson's avatar Bo Anderson
Browse files

cleanup: clean go_mod_cache

parent 84e4e1b4
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,21 @@ module CleanupRefinement
end
def nested_cache?
directory? && %w[cargo_cache go_cache glide_home java_cache npm_cache gclient_cache].include?(basename.to_s)
directory? && %w[
cargo_cache
go_cache
go_mod_cache
glide_home
java_cache
npm_cache
gclient_cache
].include?(basename.to_s)
end
def go_cache_directory?
# Go makes its cache contents read-only to ensure cache integrity,
# which makes sense but is something we need to undo for cleanup.
directory? && %w[go_cache].include?(basename.to_s)
directory? && %w[go_cache go_mod_cache].include?(basename.to_s)
end
def prune?(days)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment