aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-07-14 22:22:54 +0200
committergit <svn-admin@ruby-lang.org>2022-08-02 16:10:13 +0900
commit6ec8f684aa1ff6182b4be3fc67b2fa5bad3f0bec (patch)
treeafda279ac00363183985b6229bd5ee4aed8b700a /lib
parent24204d54ab730791bfbd0cd66b8e12f0bd62ca5d (diff)
downloadruby-6ec8f684aa1ff6182b4be3fc67b2fa5bad3f0bec.tar.gz
[rubygems/rubygems] Move some logic to `LazySpecification#__materialize__`
https://github.com/rubygems/rubygems/commit/5e100df7c9
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/lazy_specification.rb2
-rw-r--r--lib/bundler/spec_set.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index 21e75d2126..ff9444e009 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -76,6 +76,8 @@ module Bundler
end
def materialize_for_installation
+ source.local!
+
__materialize__(ruby_platform_materializes_to_ruby_platform? ? platform : Bundler.local_platform)
end
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index a7a95e49bc..4e339ffe91 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -70,7 +70,6 @@ module Bundler
materialized.map! do |s|
next s unless s.is_a?(LazySpecification)
- s.source.local!
s.materialize_for_installation || s
end
SpecSet.new(materialized)
@@ -82,7 +81,6 @@ module Bundler
def materialized_for_all_platforms
@specs.map do |s|
next s unless s.is_a?(LazySpecification)
- s.source.local!
s.source.remote!
spec = s.materialize_for_installation
raise GemNotFound, "Could not find #{s.full_name} in any of the sources" unless spec