summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/serve_service/target.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-06 17:17:16 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-11 15:59:05 +0100
commitb885deebf9fc02b9f1e849d91de93fadcfb71a73 (patch)
treea26b4f9ad05e479b51b97a1a4c489525243c241a /src/buildtool/serve_api/serve_service/target.cpp
parent1bba42d5168a13dbebda8820fc5e28df1d401669 (diff)
downloadjustbuild-b885deebf9fc02b9f1e849d91de93fadcfb71a73.tar.gz
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.
Diffstat (limited to 'src/buildtool/serve_api/serve_service/target.cpp')
-rw-r--r--src/buildtool/serve_api/serve_service/target.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/serve_service/target.cpp b/src/buildtool/serve_api/serve_service/target.cpp
index e7a4bf31..97b75b53 100644
--- a/src/buildtool/serve_api/serve_service/target.cpp
+++ b/src/buildtool/serve_api/serve_service/target.cpp
@@ -405,6 +405,7 @@ auto TargetService::ServeTarget(
auto result = AnalyseTarget(configured_target,
&result_map,
&repository_config,
+ *tc,
RemoteServeConfig::Jobs(),
std::nullopt /*request_action_input*/);