File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,14 @@ def write_lockfile(lockfile_definition,
512
512
previous_ui_level = Bundler . ui . level
513
513
Bundler . ui . level = "warn"
514
514
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
+ definition . instance_variable_get ( :@missing_lockfile_dep ) ||
519
+ definition . instance_variable_get ( :@invalid_lockfile_dep )
520
+ raise SolveFailure
521
+ end
522
+
515
523
# this is a horrible hack, to fix what I consider to be a Bundler bug.
516
524
# basically, if you have multiple platform specific gems in your
517
525
# lockfile, and that gem gets unlocked, Bundler will only search
You can’t perform that action at this time.
0 commit comments