Skip to content

Commit 4df87bc

Browse files
committed
fix: escape more invalid repo string characters
Fixes #2799
1 parent c981569 commit 4df87bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/pypi/whl_repo_name.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def whl_repo_name(filename, sha256):
4444
else:
4545
parsed = parse_whl_name(filename)
4646
name = normalize_name(parsed.distribution)
47-
version = parsed.version.replace(".", "_").replace("!", "_")
47+
version = parsed.version.replace(".", "_").replace("!", "_").replace("+", "_").replace("%", "_")
4848
python_tag, _, _ = parsed.python_tag.partition(".")
4949
abi_tag, _, _ = parsed.abi_tag.partition(".")
5050
platform_tag, _, _ = parsed.platform_tag.partition(".")

0 commit comments

Comments
 (0)