Commit 5762646a authored by Samuel Giddins's avatar Samuel Giddins

[Analyzer] Don’t analyze multiple times

parent 96d8b909
......@@ -56,6 +56,7 @@ module Pod
@test_pod_target_analyzer_cache = {}
@test_pod_target_key = Struct.new(:name, :pod_targets)
@podfile_dependency_cache = PodfileDependencyCache.from_podfile(podfile)
@result = nil
end
# Performs the analysis.
......@@ -70,6 +71,7 @@ module Pod
# @return [AnalysisResult]
#
def analyze(allow_fetches = true)
return @result if @result
validate_podfile!
validate_lockfile_version!
@result = AnalysisResult.new
......
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