From 56b367d4104b2476d9aa2027c8a28d0dc5ba4f2d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 24 Oct 2024 11:25:08 +0200 Subject: serve service: Use digest when requesting serve to set up a tree ...instead of passing just the Git hash, which imposes the remote to always be native. The serve service proto file is updated accordingly. --- src/buildtool/serve_api/remote/source_tree_client.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/buildtool/serve_api/remote/source_tree_client.hpp') diff --git a/src/buildtool/serve_api/remote/source_tree_client.hpp b/src/buildtool/serve_api/remote/source_tree_client.hpp index 15638afc..32fb910c 100644 --- a/src/buildtool/serve_api/remote/source_tree_client.hpp +++ b/src/buildtool/serve_api/remote/source_tree_client.hpp @@ -127,11 +127,11 @@ class SourceTreeClient { /// \brief Retrieve tree from the CAS of the associated remote-execution /// endpoint and makes it available for a serve-orchestrated build. - /// \param[in] tree_id Identifier of the Git tree to retrieve. + /// \param[in] digest Tree to retrieve. /// \returns Flag to state whether tree was successfully imported into the /// local Git storage or not. - [[nodiscard]] auto GetRemoteTree(std::string const& tree_id) const noexcept - -> bool; + [[nodiscard]] auto GetRemoteTree( + ArtifactDigest const& digest) const noexcept -> bool; private: HashFunction const& hash_function_; // hash function of the remote -- cgit v1.2.3