summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-11-30 12:26:10 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-05 10:52:23 +0100
commitbe353baa567da5de46b257a4f73b48dc301aacf0 (patch)
treeeba44501f3e3087b04e6ecc0f5eb5fb0204f8d31 /src/buildtool/serve_api/remote/serve_api.hpp
parentb5bb39846e3743741339037a72e569fac1676011 (diff)
downloadjustbuild-be353baa567da5de46b257a4f73b48dc301aacf0.tar.gz
serve target client: Ensure repository key blob is also in remote CAS
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index 16b998b4..fce7611d 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -69,9 +69,10 @@ class ServeApi final {
target_root_id, target_file, target);
}
- [[nodiscard]] static auto ServeTarget(const TargetCacheKey& key)
+ [[nodiscard]] static auto ServeTarget(const TargetCacheKey& key,
+ const std::string& repo_key)
-> std::optional<std::pair<TargetCacheEntry, Artifact::ObjectInfo>> {
- return Instance().tc_->ServeTarget(key);
+ return Instance().tc_->ServeTarget(key, repo_key);
}
[[nodiscard]] static auto CheckServeRemoteExecution() -> bool {