summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-05-25 13:39:33 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-06-06 10:52:53 +0900
commit1f9e66836b71dd77aaef660628eb2455b4f28a3b (patch)
treeb822913cc1c4b32e02493712b887c416936c0e38 /lib
parentebe1077330b36bfa960fd94392e26fdfbaa93951 (diff)
[rubygems/rubygems] Fix inline mode with multiple sources
If we're in inline mode, Bundler first resolves using only local gems, and if some gems are missing, then it re-resolves using remote gems. However, "source resolution" from the initial "local" try was being memoized, resulting in Bundler not looking for some gems remotely in the second resolution. This commit forces a proper re-resolve in this case. https://github.com/rubygems/rubygems/commit/fdc631075e
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/definition.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 1444cc2b0a..7ccbc2248d 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -217,6 +217,7 @@ module Bundler
rescue BundlerError => e
@resolve = nil
@resolver = nil
+ @resolution_packages = nil
@specs = nil
@gem_version_promoter = nil