Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4df87bc

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎python/private/pypi/whl_repo_name.bzl

Copy file name to clipboardExpand all lines: python/private/pypi/whl_repo_name.bzl
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.