From 3be562eb94083b7f88709051af2c9d8982beb9c9 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Sat, 17 Jan 2026 02:09:49 +0000 Subject: [PATCH] project: die if the --manifest-file argument is not relative This was found while testing the --topdir pull request in progress. It's valid with or without it. Signed-off-by: Marc Herbert --- src/west/app/project.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/west/app/project.py b/src/west/app/project.py index 1cd9aa8d..336c9343 100644 --- a/src/west/app/project.py +++ b/src/west/app/project.py @@ -281,6 +281,9 @@ def do_run(self, args, _): if args.local and (args.manifest_url or args.manifest_rev or args.clone_opt): self.die('-l cannot be combined with -m, -o or --mr') + if args.manifest_file is not None and Path(args.manifest_file).is_absolute(): + self.die(f'--mf {args.manifest_file} argument is not relative') + self.die_if_no_git() if args.local: