cli: don't update macOS machines

This commit is contained in:
Michael Hoang
2025-04-06 18:45:16 +02:00
parent b5a57a72a0
commit 83a2de0f47
2 changed files with 22 additions and 2 deletions

View File

@@ -238,6 +238,8 @@ def update_command(args: argparse.Namespace) -> None:
if len(args.machines) == 0:
ignored_machines = []
for machine in get_all_machines(args.flake, args.option):
if machine._class_ == "darwin":
continue
if machine.deployment.get("requireExplicitUpdate", False):
continue
try:
@@ -265,6 +267,11 @@ def update_command(args: argparse.Namespace) -> None:
machine.override_build_host = args.build_host
machine.host_key_check = HostKeyCheck.from_str(args.host_key_check)
for machine in machines:
if machine._class_ == "darwin":
machine.error("Updating macOS machines is not yet supported")
sys.exit(1)
deploy_machines(machines)
except KeyboardInterrupt:
log.warning("Interrupted by user")