summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/root_utils.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-21 12:08:34 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-27 14:35:44 +0100
commit1394c3d9016373ef727feac9d1aed514e1f89f53 (patch)
tree8a1e0071a9233b6bc68990c58481db3b0fc1597a /src/other_tools/root_maps/root_utils.hpp
parent4500ab06bc8891aa1ba6cf00f1437fe466315624 (diff)
downloadjustbuild-1394c3d9016373ef727feac9d1aed514e1f89f53.tar.gz
just-mr: Correct handling of remotes with respect to compatibility mode
In order to set up roots, just-mr is able to interrogate, if given, serve and/or remote-execution endpoints. However, just-mr operates only with Git hashes, i.e., with a native mode CAS. This commit ensures the correct interactions occur between just-mr and the provided endpoints not only in native mode, but also in comaptible mode, where a serve endpoint might be present even if one cannot make use of its associated remote-exection endpoint. The user always gets informed if any incompatibilities are detected.
Diffstat (limited to 'src/other_tools/root_maps/root_utils.hpp')
-rw-r--r--src/other_tools/root_maps/root_utils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/other_tools/root_maps/root_utils.hpp b/src/other_tools/root_maps/root_utils.hpp
index bf50e04d..d154eb3e 100644
--- a/src/other_tools/root_maps/root_utils.hpp
+++ b/src/other_tools/root_maps/root_utils.hpp
@@ -37,6 +37,8 @@
/// defined by a given tree by retrieving it from the remote CAS. This method
/// ensures the respective tree is in the remote CAS prior to the ServeApi call
/// by uploading it to the remote CAS if it is missing.
+/// IMPORTANT: No check is performed for the compatibility mode of the protocol
+/// used by given remote execution endpoint!
/// \param tree_id The Git-tree identifier.
/// \param repo_path Local witnessing Git repository for the tree.
/// \param remote_api Optional API of the remote-execution endpoint. If nullopt,