diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 7ccbc2248d1da8..6ad31f8e8ea967 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -385,7 +385,7 @@ def ensure_equivalent_gemfile_and_lockfile(explicit_flag = false) @dependencies.each {|d| both_sources[d.name][0] = d } locked_dependencies.each do |d| - next if !Bundler.feature_flag.bundler_3_mode? && @locked_specs[d.name].empty? + next if @locked_specs[d.name].empty? both_sources[d.name][1] = d end diff --git a/spec/bundler/install/deploy_spec.rb b/spec/bundler/install/deploy_spec.rb index 8553fcf356c428..879d5e54ae9247 100644 --- a/spec/bundler/install/deploy_spec.rb +++ b/spec/bundler/install/deploy_spec.rb @@ -297,7 +297,7 @@ expect(out).to eq("WIN") end - it "works if a gem is missing, but it's on a different platform", :bundler => "< 3" do + it "works if a gem is missing, but it's on a different platform" do build_repo2 install_gemfile <<-G