summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-03-16 18:37:42 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-23 17:18:49 +0900
commit8e6bbc032c1bde617a45e418af697831df471083 (patch)
tree1c72bed11329f3c2151c2702a817d05500bc6110 /lib
parent4e7c39f98ceaf5160d9a97b7d2405623f972773a (diff)
Don't remove RUBY platform when healing a lockfile with missing specs
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7582
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/spec_set.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb
index 4882f7b38a..cf63c16a70 100644
--- a/lib/bundler/spec_set.rb
+++ b/lib/bundler/spec_set.rb
@@ -103,6 +103,8 @@ module Bundler
def incomplete_ruby_specs?(deps)
return false if @specs.empty?
+ @incomplete_specs = []
+
self.for(deps, true, [Gem::Platform::RUBY])
@incomplete_specs.any?