aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-03-16 20:11:18 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-23 17:18:49 +0900
commitebebc90ec297c945cdf94c90f8db85dd7ddbcb7b (patch)
treeb9ae53f98da645ebab294491c994746da8f2306e /lib/bundler.rb
parent8e6bbc032c1bde617a45e418af697831df471083 (diff)
downloadruby-ebebc90ec297c945cdf94c90f8db85dd7ddbcb7b.tar.gz
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".
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb1
1 files changed, 1 insertions, 0 deletions
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__)