[rubygems/rubygems] Extract a source local

https://github.com/rubygems/rubygems/commit/c5a9449069
This commit is contained in:
David Rodríguez 2024-11-19 20:43:21 +01:00 committed by git
parent 8cf1222e56
commit 0a7099a0ae

View File

@ -960,11 +960,12 @@ module Bundler
s.source = default_source unless sources.get(lockfile_source)
end
next if @sources_to_unlock.include?(s.source.name)
source = s.source
next if @sources_to_unlock.include?(source.name)
# Path sources have special logic
if s.source.instance_of?(Source::Path) || s.source.instance_of?(Source::Gemspec)
new_spec = s.source.specs[s].first
if source.instance_of?(Source::Path) || source.instance_of?(Source::Gemspec)
new_spec = source.specs[s].first
if new_spec
s.dependencies.replace(new_spec.dependencies)
else