Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
[LazySpecification] Handle when platform is nil in __materialize__
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Feb 22, 2017
1 parent 747fee1 commit 961756b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/lazy_specification.rb
Expand Up @@ -73,7 +73,7 @@ def __materialize__
source.gemspec.tap {|s| s.source = source }
else
search = source.specs.search(search_object).last
if search && search.platform != platform && !search.runtime_dependencies.-(dependencies.reject {|d| d.type == :development }).empty?
if search && Gem::Platform.new(search.platform) != Gem::Platform.new(platform) && !search.runtime_dependencies.-(dependencies.reject {|d| d.type == :development }).empty?
Bundler.ui.warn "Unable to use the platform-specific (#{search.platform}) version of #{name} (#{version}) " \
"because it has different dependencies from the #{platform} version. " \
"To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again."
Expand Down

0 comments on commit 961756b

Please sign in to comment.