From be353baa567da5de46b257a4f73b48dc301aacf0 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 30 Nov 2023 12:26:10 +0100 Subject: serve target client: Ensure repository key blob is also in remote CAS --- src/buildtool/serve_api/remote/target_client.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/buildtool/serve_api/remote/target_client.hpp') 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>; /// \brief Retrieve the flexible config variables of an export target. -- cgit v1.2.3