diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-29 18:09:56 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-31 17:15:46 +0100 |
commit | a9b3d717eac4c4f3b87b2bb7fe9f0961f4bb6fb0 (patch) | |
tree | b5fa92fc826dc7579d42e34be573bd3ee3ceb4bd /src/other_tools/just_mr/fetch.cpp | |
parent | 66df7f4956c6fe1823eb43d31c3cbac7d8716125 (diff) | |
download | justbuild-a9b3d717eac4c4f3b87b2bb7fe9f0961f4bb6fb0.tar.gz |
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.
Diffstat (limited to 'src/other_tools/just_mr/fetch.cpp')
-rw-r--r-- | src/other_tools/just_mr/fetch.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<Configuration> 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<LocalApi>()}; // setup the API for serving trees of Git repos or archives |