summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/main.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-24 14:02:37 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-25 18:11:23 +0200
commit089733c819066b801e28d6441cbff887e60aef51 (patch)
treeb5d1528c0ce3e25f042c70684812711fa33fb9b8 /src/other_tools/just_mr/main.cpp
parent833974c986eb46f88c87b3a95b4b840a333b24da (diff)
downloadjustbuild-089733c819066b801e28d6441cbff887e60aef51.tar.gz
just-mr fetch: Allow to back up fetched archives to a given remote CAS
Diffstat (limited to 'src/other_tools/just_mr/main.cpp')
-rw-r--r--src/other_tools/just_mr/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp
index 21cba2f7..29e53048 100644
--- a/src/other_tools/just_mr/main.cpp
+++ b/src/other_tools/just_mr/main.cpp
@@ -749,6 +749,15 @@ auto main(int argc, char* argv[]) -> int {
// Run subcommand `fetch`
if (arguments.cmd == SubCommand::kFetch) {
+ // check fetch configuration arguments for validity
+ if (arguments.common.remote_execution_address and
+ arguments.fetch.backup_to_remote and
+ Compatibility::IsCompatible()) {
+ Logger::Log(LogLevel::Error,
+ "Remote backup for fetched archives only available "
+ "in native mode!");
+ return kExitConfigError;
+ }
return MultiRepoFetch(config,
arguments.common,
arguments.setup,