From a9b3d717eac4c4f3b87b2bb7fe9f0961f4bb6fb0 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 29 Jan 2024 18:09:56 +0100 Subject: just-mr: Serve endpoint always implies a remote-execution endpoint As the serve service always has an associated remote-execution endpoint, when just-mr gets passed only a serve endpoint address it will now default to implying a remote-execution endpoint exists too at that address. Additionally, now the implementation of the --backup-to-remote option more clearly shows that it can only be done in native mode. --- src/other_tools/root_maps/fpath_git_map.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/other_tools/root_maps/fpath_git_map.cpp') diff --git a/src/other_tools/root_maps/fpath_git_map.cpp b/src/other_tools/root_maps/fpath_git_map.cpp index 7ca438c1..11344de1 100644 --- a/src/other_tools/root_maps/fpath_git_map.cpp +++ b/src/other_tools/root_maps/fpath_git_map.cpp @@ -46,17 +46,9 @@ void CheckServeAndSetRoot( return; // fatal } if (not *has_tree) { - if (not remote_api) { - (*logger)(fmt::format( - "Missing remote-execution endpoint needed to " - "sync workspace root {} with the serve endpoint.", - tree_id), - /*fatal=*/true); - return; - } if (not EnsureAbsentRootOnServe(tree_id, repo_root, - remote_api, + *remote_api, logger, /*no_sync_is_fatal=*/absent)) { return; // fatal -- cgit v1.2.3