Merge pull request 'cli/machines: don't allow installing on macOS' (#3387) from push-zrqstttptroo into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3387
This commit is contained in:
Michael Hoang
2025-04-22 17:22:21 +00:00

View File

@@ -166,8 +166,11 @@ def install_command(args: argparse.Namespace) -> None:
machine = Machine(name=args.machine, flake=args.flake, nix_options=args.option) machine = Machine(name=args.machine, flake=args.flake, nix_options=args.option)
use_tor = False use_tor = False
if machine._class_ == "darwin":
msg = "Installing macOS machines is not yet supported"
raise ClanError(msg)
if args.flake is None: if args.flake is None:
#
msg = "Could not find clan flake toplevel directory" msg = "Could not find clan flake toplevel directory"
raise ClanError(msg) raise ClanError(msg)