diff --git a/lib/bundler/multilock.rb b/lib/bundler/multilock.rb index 912b9b9..2429250 100644 --- a/lib/bundler/multilock.rb +++ b/lib/bundler/multilock.rb @@ -512,6 +512,12 @@ def write_lockfile(lockfile_definition, previous_ui_level = Bundler.ui.level Bundler.ui.level = "warn" begin + # force a remote resolution if intermediate gems are missing + if definition.instance_variable_get(:@locked_spec_with_missing_deps) || + definition.instance_variable_get(:@locked_spec_with_invalid_deps) + raise SolveFailure + end + # this is a horrible hack, to fix what I consider to be a Bundler bug. # basically, if you have multiple platform specific gems in your # lockfile, and that gem gets unlocked, Bundler will only search