[rubygems/rubygems] Check feature flag earlier

https://github.com/rubygems/rubygems/commit/33536aa61c
This commit is contained in:
David Rodríguez 2024-11-26 19:07:45 +01:00 committed by git
parent 68c7e75349
commit 2a8437a1eb

View File

@ -217,9 +217,11 @@ module Bundler
end
def cache(spec, custom_path = nil)
app_cache_path = app_cache_path(custom_path)
return unless Bundler.feature_flag.cache_all?
app_cache_path = app_cache_path(custom_path)
return if cache_path == app_cache_path
cached!
FileUtils.rm_rf(app_cache_path)
git_proxy.checkout if requires_checkout?