diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-21 13:30:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-21 13:31:22 +0900 |
commit | 4419b5dbc2e3fe4ec3ac27e3d8b8a2b357f27426 (patch) | |
tree | ea5725ae807a4cf0270ceaf0d0dcd0db5508c2ce | |
parent | 81dfe3c47bb397a0a54ee10c6913112181a8466d (diff) | |
download | bundler-4419b5dbc2e3fe4ec3ac27e3d8b8a2b357f27426.tar.gz |
The investigation is going on...
-rw-r--r-- | lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb | 10 | ||||
-rw-r--r-- | spec/bundler/support/indexes.rb | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb b/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb index acf7777414..b49acd4a48 100644 --- a/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +++ b/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb @@ -605,6 +605,16 @@ module Bundler::Molinillo requirements[name_for_locking_dependency_source] = [locked_requirement] if locked_requirement vertex.incoming_edges.each do |edge| (requirements[edge.origin.payload.latest_version] ||= []).unshift(edge.requirement) + rescue NoMethodError => e + if e.receiver.is_a?(String) and e.name == :name + PP.pp({vertex: vertex, + incoming_edges: vertex.incoming_edges, + edge: edge, + origin: edge.origin, + payload: edge.origin.payload}, STDERR) + STDERR.puts e.message, e.backtrace + end + raise end activated_by_name = {} diff --git a/spec/bundler/support/indexes.rb b/spec/bundler/support/indexes.rb index 63c598b468..b76f493d01 100644 --- a/spec/bundler/support/indexes.rb +++ b/spec/bundler/support/indexes.rb @@ -27,12 +27,6 @@ module Spec end source_requirements ||= {} Bundler::Resolver.resolve(deps, @index, source_requirements, *args) - rescue NoMethodError => e - if e.receiver.is_a?(String) and e.name == :name - PP.pp([deps, @index, source_requirements, *args], STDERR) - STDERR.puts e.message, e.backtrace - end - raise end def should_resolve_as(specs) |