Commit 72c47a6f authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Resolver] Fix crash when there are lockfile dependencies that were never…

[Resolver] Fix crash when there are lockfile dependencies that were never actually installed (i.e. incompatible platform subspecs)

See https://github.com/CocoaPods/CocoaPods/issues/2789#issuecomment-61797151.
parent 92ab61e9
...@@ -306,6 +306,9 @@ module Pod ...@@ -306,6 +306,9 @@ module Pod
else else
set = create_set_from_sources(dependency) set = create_set_from_sources(dependency)
end end
if dependency.head?
set = Specification::Set::Head.new(set.specification)
end
cached_sets[name] = set cached_sets[name] = set
unless set unless set
raise Molinillo::NoSuchDependencyError.new(dependency) # rubocop:disable Style/RaiseArgs raise Molinillo::NoSuchDependencyError.new(dependency) # rubocop:disable Style/RaiseArgs
......
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