From ebebc90ec297c945cdf94c90f8db85dd7ddbcb7b Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Thu, 16 Mar 2023 20:11:18 +0100 Subject: Refactor incomplete specs handling Recent bugs fixed made me realize we were relying on state too much here. We only need to keep incomplete specs to be able to expire them and retry resolution without them locked. If we use a separate class, we can do that more transparently and handle them just like we handle "missing specs". --- lib/bundler.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/bundler.rb') diff --git a/lib/bundler.rb b/lib/bundler.rb index 3f7fc8f5f4..71e16b1959 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -62,6 +62,7 @@ module Bundler autoload :GemHelpers, File.expand_path("bundler/gem_helpers", __dir__) autoload :GemVersionPromoter, File.expand_path("bundler/gem_version_promoter", __dir__) autoload :Graph, File.expand_path("bundler/graph", __dir__) + autoload :IncompleteSpecification, File.expand_path("bundler/incomplete_specification", __dir__) autoload :Index, File.expand_path("bundler/index", __dir__) autoload :Injector, File.expand_path("bundler/injector", __dir__) autoload :Installer, File.expand_path("bundler/installer", __dir__) -- cgit v1.2.3