summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-10-24 11:25:08 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-10-25 13:00:43 +0200
commit56b367d4104b2476d9aa2027c8a28d0dc5ba4f2d (patch)
treecabeb4db76364d6678c7d55a9f1c3d2658fe3e13 /src/buildtool/serve_api/remote/serve_api.hpp
parentb98addc8f8e3e62e1213cd967f20aa631057f84e (diff)
downloadjustbuild-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/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index 64e39092..3a9443fa 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -120,8 +120,8 @@ class ServeApi final {
}
[[nodiscard]] auto GetTreeFromRemote(
- std::string const& tree_id) const noexcept -> bool {
- return stc_.GetRemoteTree(tree_id);
+ ArtifactDigest const& digest) const noexcept -> bool {
+ return stc_.GetRemoteTree(digest);
}
[[nodiscard]] auto ServeTargetVariables(std::string const& target_root_id,