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/just_mr/fetch.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/other_tools/just_mr/fetch.cpp') diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index 083284b9..db2eedcd 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -454,8 +454,10 @@ auto MultiRepoFetch(std::shared_ptr const& config, nr_gt != 0 ? str_gt : std::string()); // setup the APIs for archive fetches - auto remote_api = JustMR::Utils::GetRemoteApi( - common_args.remote_execution_address, auth_args); + auto remote_api = + JustMR::Utils::GetRemoteApi(common_args.remote_execution_address, + common_args.remote_serve_address, + auth_args); IExecutionApi::Ptr local_api{std::make_unique()}; // setup the API for serving trees of Git repos or archives -- cgit v1.2.3