summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/fetch.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-29 17:11:53 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-30 12:10:06 +0200
commitab0e0b86fff94bed224f894be6b555272857e336 (patch)
treea7b7abf004e761b34e58bf68986b6ee2c7d71440 /src/other_tools/just_mr/fetch.cpp
parente607a21fcf2c1b50e347adbc66c0af3ed0df75aa (diff)
downloadjustbuild-ab0e0b86fff94bed224f894be6b555272857e336.tar.gz
Pass LocalContext to ApiBundle
Diffstat (limited to 'src/other_tools/just_mr/fetch.cpp')
-rw-r--r--src/other_tools/just_mr/fetch.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp
index b6495a6f..e7d1f775 100644
--- a/src/other_tools/just_mr/fetch.cpp
+++ b/src/other_tools/just_mr/fetch.cpp
@@ -25,6 +25,7 @@
#include "src/buildtool/execution_api/common/api_bundle.hpp"
#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/execution_api/local/config.hpp"
+#include "src/buildtool/execution_api/local/context.hpp"
#include "src/buildtool/execution_api/remote/config.hpp"
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
@@ -427,10 +428,13 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config,
return kExitConfigError;
}
+ // pack the local context instances to be passed to ApiBundle
+ LocalContext const local_context{.exec_config = &*local_exec_config,
+ .storage_config = &storage_config,
+ .storage = &storage};
+
// setup the APIs for archive fetches; only happens if in native mode
- ApiBundle const apis{&storage_config,
- &storage,
- &*local_exec_config,
+ ApiBundle const apis{&local_context,
/*repo_config=*/nullptr,
&*auth_config,
&*retry_config,