[rubygems/rubygems] Check feature flag earlier
https://github.com/rubygems/rubygems/commit/33536aa61c
This commit is contained in:
parent
68c7e75349
commit
2a8437a1eb
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user