From a8d02eac0e6673dea6daa781bf1c31921ec5f63a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 20 Nov 2023 14:20:06 +0100 Subject: content_cas_map: Interrogate just serve endpoint also if doing pure fetch Before trying to fetch an archive content from other non-local sources, check first the just serve endpoint. --- src/other_tools/just_mr/fetch.cpp | 5 +++++ 1 file changed, 5 insertions(+) (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 ade217f2..c4450c2a 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -274,11 +274,16 @@ auto MultiRepoFetch(std::shared_ptr const& config, IExecutionApi::Ptr local_api{remote_api ? std::make_unique() : nullptr}; + // setup the API for serving trees of Git repos or archives + auto serve_api_exists = JustMR::Utils::SetupServeApi( + common_args.remote_serve_address, auth_args); + // create async maps auto content_cas_map = CreateContentCASMap(common_args.just_mr_paths, common_args.alternative_mirrors, common_args.ca_info, + serve_api_exists, local_api ? &(*local_api) : nullptr, remote_api ? &(*remote_api) : nullptr, common_args.jobs); -- cgit v1.2.3