summaryrefslogtreecommitdiff
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-07-04 16:41:43 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-24 15:03:15 +0900
commit8c82b3579154f12c19d916bd74c87dbe9818711e (patch)
tree6f3bf21073a3da5a23c69fd98a78f09c2da2c756 /lib/bundler/definition.rb
parent0e7536bf490cf4b26cf075810e918a5840dbb08b (diff)
[rubygems/rubygems] Exclude Bundler from missing locked dependencies check
Bundler is special since it's not actually locked in the lockfile as a regular gem (only via `BUNDLED WITH`). So exclude it from that check. https://github.com/rubygems/rubygems/commit/9f1756ec47
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 1970782d55..e043630c2d 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -700,7 +700,7 @@ module Bundler
return if @dependency_changes
current_dependencies.find do |d|
- @locked_specs[d.name].empty?
+ @locked_specs[d.name].empty? && d.name != "bundler"
end&.name
end