Skip to content

Commit

Permalink
strip @ from a generated target name (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
apesternikov authored Feb 22, 2023
1 parent b832f7d commit b639847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skylib/k8s.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _image_pushes(name_suffix, images, image_registry, image_repository, image_r
rule_name_parts = [image_label, image_registry, image_repository, legacy_name]
rule_name_parts = [p for p in rule_name_parts if p]
rule_name = "_".join(rule_name_parts)
rule_name = rule_name.replace("/", "_").replace(":", "_")
rule_name = rule_name.replace("/", "_").replace(":", "_").replace("@", "_")
if rule_name.startswith("_"):
rule_name = rule_name[1:]
if rule_name.startswith("_"):
Expand Down

0 comments on commit b639847

Please sign in to comment.