From 8c82b3579154f12c19d916bd74c87dbe9818711e Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Tue, 4 Jul 2023 16:41:43 +0200 Subject: [rubygems/rubygems] Exclude Bundler from missing locked dependencies check Bundler is special since it's not actually locked in the lockfile as a regular gem (only via `BUNDLED WITH`). So exclude it from that check. https://github.com/rubygems/rubygems/commit/9f1756ec47 --- spec/bundler/runtime/setup_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/bundler/runtime/setup_spec.rb') diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb index 713cab2124..75f2a62868 100644 --- a/spec/bundler/runtime/setup_spec.rb +++ b/spec/bundler/runtime/setup_spec.rb @@ -639,6 +639,16 @@ RSpec.describe "Bundler.setup" do expect(err).to be_empty end + it "doesn't fail in frozen mode when bundler is a Gemfile dependency" do + install_gemfile <<~G + source "#{file_uri_for(gem_repo4)}" + gem "bundler" + G + + bundle "install --verbose", :env => { "BUNDLE_FROZEN" => "true" } + expect(err).to be_empty + end + it "doesn't re-resolve when deleting dependencies" do install_gemfile <<-G source "#{file_uri_for(gem_repo1)}" -- cgit v1.2.3