From 1f3bd09245689d40a6c6bb304eb71a9a0d2c5e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 20 Feb 2025 09:59:42 +0700 Subject: [PATCH] fix regex for detecting git+file inputs --- pkgs/clan-cli/clan_cli/machines/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/machines/update.py b/pkgs/clan-cli/clan_cli/machines/update.py index 564a864bf..e9c9a0304 100644 --- a/pkgs/clan-cli/clan_cli/machines/update.py +++ b/pkgs/clan-cli/clan_cli/machines/update.py @@ -37,7 +37,8 @@ def is_local_input(node: dict[str, dict[str, str]]) -> bool: # matches path and git+file:// return ( locked["type"] == "path" - or re.match(r"^\w+\+file://", locked.get("url", "")) is not None + # local vcs inputs i.e. git+file:/// + or re.match(r"^file://", locked.get("url", "")) is not None )