Skip to content

Commit 8fe5834

Browse files
committed
fix an issue on initial sync that doesn't know to include intermediate gems
1 parent 0def57b commit 8fe5834

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/bundler/multilock.rb

+6
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,12 @@ def write_lockfile(lockfile_definition,
512512
previous_ui_level = Bundler.ui.level
513513
Bundler.ui.level = "warn"
514514
begin
515+
# force a remote resolution if intermediate gems are missing
516+
if definition.instance_variable_get(:@locked_spec_with_missing_deps) ||
517+
definition.instance_variable_get(:@locked_spec_with_invalid_deps)
518+
raise SolveFailure
519+
end
520+
515521
# this is a horrible hack, to fix what I consider to be a Bundler bug.
516522
# basically, if you have multiple platform specific gems in your
517523
# lockfile, and that gem gets unlocked, Bundler will only search

0 commit comments

Comments
 (0)