From 11683953368e35f8118e66fc22eb319866871fa8 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 23 Apr 2025 03:12:13 +1000 Subject: [PATCH] cli/machines: don't allow installing on macOS --- pkgs/clan-cli/clan_cli/machines/install.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/machines/install.py b/pkgs/clan-cli/clan_cli/machines/install.py index 93e7f8d68..f62d6ad00 100644 --- a/pkgs/clan-cli/clan_cli/machines/install.py +++ b/pkgs/clan-cli/clan_cli/machines/install.py @@ -166,8 +166,11 @@ def install_command(args: argparse.Namespace) -> None: machine = Machine(name=args.machine, flake=args.flake, nix_options=args.option) use_tor = False + if machine._class_ == "darwin": + msg = "Installing macOS machines is not yet supported" + raise ClanError(msg) + if args.flake is None: - # msg = "Could not find clan flake toplevel directory" raise ClanError(msg)