From b451d7c3ffcbcf6baa9b60548947372905b78fae Mon Sep 17 00:00:00 2001 From: DavHau Date: Fri, 20 Dec 2024 19:23:25 +0700 Subject: [PATCH] machines update: remove unecessary special handling for non-path flakes --- pkgs/clan-cli/clan_cli/machines/update.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 9f931dffd..37cc1aac8 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -44,14 +44,10 @@ def upload_sources(machine: Machine) -> str: str(machine.flake.path) if machine.flake.is_local() else machine.flake.url ) flake_data = nix_metadata(flake_url) - url = flake_data["resolvedUrl"] has_path_inputs = any( is_path_input(node) for node in flake_data["locks"]["nodes"].values() ) - if not has_path_inputs and not is_path_input(flake_data): - # No need to upload sources, we can just build the flake url directly - # FIXME: this might fail for private repositories? - return url + if not has_path_inputs: # Just copy the flake to the remote machine, we can substitute other inputs there. path = flake_data["path"]