From 15fd3886d4e5e3a602907b1a14148572cbaaf70b Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Fri, 17 May 2024 14:43:02 -0600 Subject: [PATCH] remove broken loop the key to this hash is [spec_name, platform], not simply name, so this loop was never doing anything. it will likely come back soon, in a fixed form, but is breaking my next commit that I don't want to fix this loop yet --- lib/bundler/multilock.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/bundler/multilock.rb b/lib/bundler/multilock.rb index b5cfa59..40f689d 100644 --- a/lib/bundler/multilock.rb +++ b/lib/bundler/multilock.rb @@ -202,7 +202,6 @@ def after_install_all(install: true) Bundler.ui.info("Syncing to #{relative_lockfile}...") if attempts == 1 synced_any = true - specs = lockfile_name.exist? ? cache.specs(lockfile_name) : {} parent_lockfile_name = lockfile_definition[:parent] parent_root = parent_lockfile_name.dirname parent_specs = cache.specs(parent_lockfile_name) @@ -253,19 +252,6 @@ def after_install_all(install: true) spec, parent_spec) - # look through all reverse dependencies; if any of them say it - # has to come from self, due to conflicts, then this gem has - # to come from self as well - [cache.reverse_dependencies(lockfile_name), - cache.reverse_dependencies(parent_lockfile_name)].each do |reverse_dependencies| - break if precedence == :self - - reverse_dependencies[spec.name].each do |dep_name| - precedence = check_precedence.call(specs[dep_name], parent_specs[dep_name]) - break if precedence == :self - end - end - spec_precedences[spec.name] = precedence || :parent end