Commit 523249e0 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Resolver] Fix scoping of subspec dependencies by maintaining from_subspec_dependency? attribute

parent bf9894fd
......@@ -137,7 +137,7 @@ module Pod
def dependencies_for(specification)
specification.all_dependencies.map do |dependency|
if dependency.root_name == Specification.root_name(specification.name)
Dependency.new(dependency.name, specification.version)
dependency.dup.tap { |d| d.specific_version = specification.version }
else
dependency
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment