summaryrefslogtreecommitdiff
path: root/lib/bundler/remote_specification.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-02-13 14:10:14 -0600
committerSamuel Giddins <segiddins@segiddins.me>2017-02-13 14:10:19 -0600
commit986a2ea581edfd70cd1a2a6936c981fd4c92f6d0 (patch)
tree141b9bb79d4764978102980974525efa6abe4b69 /lib/bundler/remote_specification.rb
parentad5aaa7c9b3a6e09fea980015d9c8666525858a1 (diff)
downloadbundler-986a2ea581edfd70cd1a2a6936c981fd4c92f6d0.tar.gz
Print a debug warning where the corrupted API deps came from
Diffstat (limited to 'lib/bundler/remote_specification.rb')
-rw-r--r--lib/bundler/remote_specification.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/remote_specification.rb b/lib/bundler/remote_specification.rb
index c62c5d61d2..3d201fbf16 100644
--- a/lib/bundler/remote_specification.rb
+++ b/lib/bundler/remote_specification.rb
@@ -52,6 +52,7 @@ module Bundler
def __swap__(spec)
without_type = proc {|d| Gem::Dependency.new(d.name, d.requirements_list) }
if (extra_deps = spec.runtime_dependencies.map(&without_type).-(dependencies.map(&without_type))) && extra_deps.any?
+ Bundler.ui.debug "#{full_name} from #{remote} has corrupted API dependencies"
raise APIResponseMismatchError,
"Downloading #{full_name} revealed dependencies not in the API (#{extra_deps.map(&:to_s).join(", ")})." \
"\nInstalling with `--full-index` should fix the problem."