From e2fbd01714d5f98a7707a47bad6b4759aa132032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 25 Jul 2025 12:14:09 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unnecessary endless loop detection Fixes a TODO now that no reports have been reported in a while. https://github.com/rubygems/rubygems/commit/f10dc84e7b --- lib/bundler/definition.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 9fc733203c..6c7a3e9c38 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -645,20 +645,12 @@ module Bundler end def materialize(dependencies) - # Tracks potential endless loops trying to re-resolve. - # TODO: Remove as dead code if not reports are received in a while - incorrect_spec = nil - specs = begin resolve.materialize(dependencies) rescue IncorrectLockfileDependencies => e raise if Bundler.frozen_bundle? - spec = e.spec - raise "Infinite loop while fixing lockfile dependencies" if incorrect_spec == spec - - incorrect_spec = spec - reresolve_without([spec]) + reresolve_without([e.spec]) retry end