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