diff --git a/lib/bundler/multilock.rb b/lib/bundler/multilock.rb index 683794b..b9cd80e 100644 --- a/lib/bundler/multilock.rb +++ b/lib/bundler/multilock.rb @@ -395,7 +395,6 @@ def write_lockfile(lockfile_definition, lockfile, install:, dependency_changes: if install current_definition = builder.to_definition(current_lockfile, {}) begin - current_definition.resolve_only_locally! if current_definition.missing_specs.any? Bundler.with_default_lockfile(current_lockfile) do Installer.install(gemfile.dirname, current_definition, {}) diff --git a/lib/bundler/multilock/check.rb b/lib/bundler/multilock/check.rb index abc985e..e09cf70 100644 --- a/lib/bundler/multilock/check.rb +++ b/lib/bundler/multilock/check.rb @@ -56,10 +56,7 @@ def base_check(lockfile_definition, log_missing: false, return_missing: false) begin definition.validate_runtime! - Bundler.ui.silence do - definition.resolve_only_locally! - end - not_installed = definition.missing_specs + not_installed = Bundler.ui.silence { definition.missing_specs } rescue RubyVersionMismatch, GemNotFound, SolveFailure return return_missing ? [] : false end