Skip to content

Commit

Permalink
only re-sync twice, not thrice
Browse files Browse the repository at this point in the history
off-by-one
  • Loading branch information
ccutrer committed Oct 5, 2023
1 parent c60670f commit de2e91a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bundler/multilock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,9 @@ def after_install_all(install: true)
# once to reset them back to the default lockfile's version.
# if it's already good, the `check` check at the beginning of
# the loop will skip the second sync anyway.
if had_changes && attempts < 3
if had_changes && attempts < 2
attempts += 1
Bundler.ui.debug("Re-running sync to #{relative_lockfile} to reset common dependencies")
redo
else
attempts = 1
Expand Down

0 comments on commit de2e91a

Please sign in to comment.