nixos-rebuild-ng: align condition for no-op warning with relaxed diff_closures call

This commit is contained in:
Elec3137
2026-02-11 07:21:30 -08:00
parent c1e16f898e
commit 388d8d23cd
@@ -266,10 +266,16 @@ def parse_args(
parser_warn("--no-build-nix is deprecated, we do not build nix anymore")
if args.diff and args.action not in (
# case for calling build_and_activate_system
# except excluding DRY_BUILD and DRY_ACTIVATE,
# in which --diff is uniquely a no-op
Action.SWITCH.value,
Action.BOOT.value,
Action.TEST.value,
Action.BUILD.value,
Action.TEST.value
Action.BUILD_IMAGE.value,
Action.BUILD_VM.value,
Action.BUILD_VM_WITH_BOOTLOADER.value,
):
parser_warn(f"--diff is a no-op with '{args.action}'")