fix: refuse pack flags with pipeline --skip-packs

This commit is contained in:
Abdessamad Derraz committed 2026-10-17 20:30:25 +02:00
1 parent e85819e0e4
commit d6c8186ccb
2 files changed
+45 -1

No files matched your search

+10 -1
View File
@@ -228,9 +228,18 @@ SKIPPED = _Skipped()
def _refuse_unapplied_flags(parser: argparse.ArgumentParser, args) -> None:
"""--all-variants builds every source itself: a --source beside it is dropped."""
"""A flag the run would drop is refused before any step.
--all-variants builds every source itself, so a --source beside it is
dropped; --skip-packs builds none, so both are.
"""
if args.all_variants and args.source != "full":
parser.error("--source is incompatible with --all-variants")
if args.skip_packs:
for flag, on in (("--source", args.source != "full"),
("--all-variants", args.all_variants)):
if on:
parser.error(f"{flag} is incompatible with --skip-packs")
def _truth_steps(args: argparse.Namespace, results: dict) -> bool: