fix normalizing builder names
This commit is contained in:
parent
c94738d1a1
commit
837df7f642
|
@ -653,7 +653,7 @@ def config_for_project(
|
||||||
def normalize_virtual_builder_name(name: str) -> str:
|
def normalize_virtual_builder_name(name: str) -> str:
|
||||||
if re.match(r"^[^:]+:", name) is not None:
|
if re.match(r"^[^:]+:", name) is not None:
|
||||||
# rewrites github:nix-community/srvos#checks.aarch64-linux.nixos-stable-example-hardware-hetzner-online-intel -> nix-community/srvos/nix-build
|
# rewrites github:nix-community/srvos#checks.aarch64-linux.nixos-stable-example-hardware-hetzner-online-intel -> nix-community/srvos/nix-build
|
||||||
match = re.match(r"[^:]:(?P<owner>[^/]+)/(?P<repo>[^#]+)#.+", name)
|
match = re.match(r"[^:]+:(?P<owner>[^/]+)/(?P<repo>[^#]+)#.+", name)
|
||||||
if match:
|
if match:
|
||||||
return f"{match['owner']}/{match['repo']}/nix-build"
|
return f"{match['owner']}/{match['repo']}/nix-build"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue