diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-10-24 11:25:08 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-10-25 13:00:43 +0200 |
commit | 56b367d4104b2476d9aa2027c8a28d0dc5ba4f2d (patch) | |
tree | cabeb4db76364d6678c7d55a9f1c3d2658fe3e13 /src/buildtool/serve_api/remote/source_tree_client.hpp | |
parent | b98addc8f8e3e62e1213cd967f20aa631057f84e (diff) | |
download | justbuild-56b367d4104b2476d9aa2027c8a28d0dc5ba4f2d.tar.gz |
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.
Diffstat (limited to 'src/buildtool/serve_api/remote/source_tree_client.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/source_tree_client.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 |