From b885deebf9fc02b9f1e849d91de93fadcfb71a73 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 6 Mar 2024 17:17:16 +0100 Subject: just analyse: Use explicit target cache instance The serve endpoint always has to access the correctly sharded target cache, including during analysis. For this purpose, the target cache instance interrogated during analysis has to be explicitly provided. --- src/buildtool/main/analyse.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buildtool/main/analyse.cpp') diff --git a/src/buildtool/main/analyse.cpp b/src/buildtool/main/analyse.cpp index 6e8aeccc..6ea61de2 100644 --- a/src/buildtool/main/analyse.cpp +++ b/src/buildtool/main/analyse.cpp @@ -96,6 +96,7 @@ namespace Target = BuildMaps::Target; const Target::ConfiguredTarget& id, gsl::not_null const& result_map, gsl::not_null const& repo_config, + ActiveTargetCache const& target_cache, std::size_t jobs, std::optional const& request_action_input) -> std::optional { @@ -119,6 +120,7 @@ namespace Target = BuildMaps::Target; &absent_target_map, result_map, repo_config, + target_cache, jobs); Logger::Log(LogLevel::Info, "Requested target is {}", id.ToString()); AnalysedTargetPtr target{}; -- cgit v1.2.3