Skip to content

Commit

Permalink
fix an issue on initial sync that doesn't know to include intermediat…
Browse files Browse the repository at this point in the history
…e gems
  • Loading branch information
ccutrer committed Jun 25, 2024
1 parent a795adb commit 385e127
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/bundler/multilock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,14 @@ 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) ||
definition.instance_variable_get(:@missing_lockfile_dep) ||
definition.instance_variable_get(:@invalid_lockfile_dep)
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
Expand Down

0 comments on commit 385e127

Please sign in to comment.