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/target_client.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/target_client.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/target_client.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.hpp b/src/buildtool/serve_api/remote/target_client.hpp index 72b8d82c..9219fb3d 100644 --- a/src/buildtool/serve_api/remote/target_client.hpp +++ b/src/buildtool/serve_api/remote/target_client.hpp @@ -38,8 +38,10 @@ class TargetClient { /// \brief Retrieve the pair of TargetCacheEntry and ObjectInfo associated /// to the given key. /// \param[in] key The TargetCacheKey of an export target + /// \param[in] repo_key The RepositoryKey to upload as precondition /// \returns Pair of cache entry and its object info on success or nullopt. - [[nodiscard]] auto ServeTarget(const TargetCacheKey& key) + [[nodiscard]] auto ServeTarget(const TargetCacheKey& key, + const std::string& repo_key) -> std::optional<std::pair<TargetCacheEntry, Artifact::ObjectInfo>>; /// \brief Retrieve the flexible config variables of an export target. |