[rubygems/rubygems] This is not about the lockfile anymore

https://github.com/rubygems/rubygems/commit/f2e0a72291
This commit is contained in:
David Rodríguez 2024-10-04 14:22:10 +02:00 committed by git
parent 54f6b787e3
commit 40a2e8e9cf
3 changed files with 5 additions and 5 deletions

View File

@ -162,10 +162,10 @@ module Bundler
extra_deps = new_deps - old_deps
return if extra_deps.empty?
Bundler.ui.debug "#{spec.full_name} from #{spec.remote} has either corrupted API or lockfile dependencies" \
Bundler.ui.debug "#{spec.full_name} from #{spec.remote} has corrupted API dependencies" \
" (was expecting #{old_deps.map(&:to_s)}, but the real spec has #{new_deps.map(&:to_s)})"
raise APIResponseMismatchError,
"Downloading #{spec.full_name} revealed dependencies not in the API or the lockfile (#{extra_deps.join(", ")})." \
"Downloading #{spec.full_name} revealed dependencies not in the API (#{extra_deps.join(", ")})." \
"\nRunning `bundle update #{spec.name}` should fix the problem."
end

View File

@ -1074,9 +1074,9 @@ RSpec.describe "compact index api" do
Gem::Dependency.new("activerecord", "= 2.3.2"),
Gem::Dependency.new("actionmailer", "= 2.3.2"),
Gem::Dependency.new("activeresource", "= 2.3.2")]
expect(out).to include("rails-2.3.2 from rubygems remote at #{source_uri}/ has either corrupted API or lockfile dependencies")
expect(out).to include("rails-2.3.2 from rubygems remote at #{source_uri}/ has corrupted API dependencies")
expect(err).to include(<<-E.strip)
Bundler::APIResponseMismatchError: Downloading rails-2.3.2 revealed dependencies not in the API or the lockfile (#{deps.map(&:to_s).join(", ")}).
Bundler::APIResponseMismatchError: Downloading rails-2.3.2 revealed dependencies not in the API (#{deps.map(&:to_s).join(", ")}).
Running `bundle update rails` should fix the problem.
E
end

View File

@ -117,7 +117,7 @@ RSpec.describe "bundle install with install-time dependencies" do
gem "actionpack", "2.3.2"
G
expect(err).to include("Downloading actionpack-2.3.2 revealed dependencies not in the API or the lockfile (activesupport (= 2.3.2)).")
expect(err).to include("Downloading actionpack-2.3.2 revealed dependencies not in the API (activesupport (= 2.3.2)).")
expect(the_bundle).not_to include_gems "actionpack 2.3.2", "activesupport 2.3.2"
end