diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-08-03 19:03:50 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-06 15:41:46 +0900 |
commit | 466a760e1807e629d0ec9f9ebf160d3c3f649d04 (patch) | |
tree | daffaf58f632ccbc5e25dd178c841a3da2d0e975 /lib/bundler/lazy_specification.rb | |
parent | 8dd63b89d97a0ab149288f2e46d814fb60cb3ba5 (diff) | |
download | ruby-466a760e1807e629d0ec9f9ebf160d3c3f649d04.tar.gz |
[rubygems/rubygems] Fix yanked gems being unintentionally update when other gems are unlocked
This is a regression from a change intended to raise errors when user
puts a gem under an incorrect source in the Gemfile by mistake. To fix
the issue, we revert the change that caused it and implement it in a
different way that restores the resolver independency from real
specifications. Now it deals only with names and versions and does not
try to materialize anything into real specifications before resolving.
https://github.com/rubygems/rubygems/commit/d2bf1b86eb
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r-- | lib/bundler/lazy_specification.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index 9f75c7bab2..5b40bec5a8 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -93,14 +93,6 @@ module Bundler __materialize__(candidates) end - def materialize_for_resolution - return self unless Gem::Platform.match_spec?(self) - - candidates = source.specs.search(self) - - __materialize__(candidates) - end - def __materialize__(candidates) @specification = begin search = candidates.reverse.find do |spec| |