diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-11-30 12:26:10 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-12-05 10:52:23 +0100 |
commit | be353baa567da5de46b257a4f73b48dc301aacf0 (patch) | |
tree | eba44501f3e3087b04e6ecc0f5eb5fb0204f8d31 /src/buildtool/serve_api/remote/serve_api.hpp | |
parent | b5bb39846e3743741339037a72e569fac1676011 (diff) | |
download | justbuild-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.hpp | 5 |
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 { |