Skip to content

Commit

Permalink
only re-sync twice, not thrice (#2)
Browse files Browse the repository at this point in the history
off-by-one
  • Loading branch information
ccutrer authored Oct 5, 2023
1 parent 4936800 commit 3f71a0d
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 @@ -274,8 +274,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 3f71a0d

Please sign in to comment.