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

[Analyzer] Don’t analyze multiple times

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