summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-01-27 18:28:44 +0900
committergit <svn-admin@ruby-lang.org>2026-01-28 22:36:57 +0000
commitf2fde274506fa1731e576d9fca237764103b56db (patch)
tree905d5152cc97dede94d7406b20521eb9ccb9255b /lib
parent554ca2eb622d1cfe886b419a54293d231a6c19f7 (diff)
[ruby/rubygems] Only use parent source with Git and Path sources
https://github.com/ruby/rubygems/commit/c5da276610
Diffstat (limited to 'lib')
-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 5ab577f504..639740e46b 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -1077,7 +1077,7 @@ module Bundler
end
end
- if parent_dep
+ if parent_dep && parent_dep.source.is_a?(Source::Path)
replacement_source = parent_dep.source
else
replacement_source = sources.get(lockfile_source)