From 8bafbcb295a129cb2a2170abb30b6ad68ac4e251 Mon Sep 17 00:00:00 2001 From: DavHau Date: Wed, 6 Aug 2025 19:06:20 +0700 Subject: [PATCH] machines update: use 'localhost' for local build --- checks/update/flake-module.nix | 2 +- pkgs/clan-cli/clan_cli/machines/update.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checks/update/flake-module.nix b/checks/update/flake-module.nix index 49595ecf3..248fadcb2 100644 --- a/checks/update/flake-module.nix +++ b/checks/update/flake-module.nix @@ -237,7 +237,7 @@ "--flake", "/flake", "--host-key-check", "none", "--upload-inputs", # Use local store instead of fetching from network - "--build-host", "local", + "--build-host", "localhost", "test-update-machine", "--target-host", f"root@localhost", ], check=True) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index d9ef8e58e..1c2e626d2 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -133,7 +133,7 @@ def update_command(args: argparse.Namespace) -> None: # figure out on which machine to build on build_host: Host | None = None if args.build_host: - if args.build_host == "local": + if args.build_host == "localhost": build_host = LocalHost() else: build_host = Remote.from_ssh_uri( @@ -207,7 +207,7 @@ def register_update_parser(parser: argparse.ArgumentParser) -> None: type=str, help=( "The machine on which to build the machine configuration.\n" - "Pass 'local' to build on the local machine, or an ssh address like user@host:1234\n" + "Pass 'localhost' to build on the local machine, or an ssh address like user@host:1234\n" ), ) parser.add_argument(