From 84e280e32d0f8124e6e9e3aa53dac8c7911b6183 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 18 Jun 2025 16:19:55 +0700 Subject: [PATCH] cli: fix `machines update` failing with `protocol mismatch` on macOS --- pkgs/clan-cli/clan_cli/machines/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 9a98760f3..9965fb77f 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -56,7 +56,7 @@ def upload_sources(machine: Machine, ssh: Remote) -> str: ) # Construct the remote URL with proper parameters for Darwin - remote_url = f"ssh://{ssh.target}" + remote_url = f"ssh-ng://{ssh.target}" # MacOS doesn't come with a proper login shell for ssh and therefore doesn't have nix in $PATH as it doesn't source /etc/profile if machine._class_ == "darwin": remote_url += "?remote-program=bash -lc 'exec nix-daemon --stdio'"