[rubygems/rubygems] Restrict local behaviour of git gems to local overrides

We want local overrides to behave just like "path gems" but per-app
caches are different.

https://github.com/rubygems/rubygems/commit/797d717a2d
This commit is contained in:
David Rodríguez 2021-03-17 18:25:59 +01:00 коммит произвёл git
Родитель 66e539418d
Коммит 26b1c7ed16
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -164,7 +164,8 @@ module Bundler
"does not exist. Run `bundle config unset local.#{override_for(original_path)}` to remove the local override"
end
set_local!(path)
@local = true
set_paths!(path)
# Create a new git proxy without the cached revision
# so the Gemfile.lock always picks up the new revision.
@ -187,7 +188,7 @@ module Bundler
end
def specs(*)
set_local!(app_cache_path) if has_app_cache? && !local?
set_paths!(app_cache_path) if has_app_cache? && !local?
if requires_checkout? && !@copied
fetch
@ -300,8 +301,7 @@ module Bundler
end
end
def set_local!(path)
@local = true
def set_paths!(path)
@local_specs = @git_proxy = nil
@cache_path = @install_path = path
end