summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-02-04 10:51:06 +0900
committergit <svn-admin@ruby-lang.org>2026-02-04 06:02:23 +0000
commit0c2ded4a07e0ba0e4d2d9ab92d549135300d495b (patch)
tree6c34fe04aea5b0be02a62ec73c7596a9acb1f6d7
parente6483d98907654d015ececd5de6a0079084f8f33 (diff)
[ruby/rubygems] Require parent path source to contain matching specs before selecting it as replacement
https://github.com/ruby/rubygems/commit/7c89d2588d
-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 639740e46b..3cf9fbe8bf 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -1077,7 +1077,7 @@ module Bundler
end
end
- if parent_dep && parent_dep.source.is_a?(Source::Path)
+ if parent_dep && parent_dep.source.is_a?(Source::Path) && parent_dep.source.specs[s]&.any?
replacement_source = parent_dep.source
else
replacement_source = sources.get(lockfile_source)