Skip to content

fix: escape more invalid repo string characters #2801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

keith
Copy link
Member

@keith keith commented Apr 21, 2025

Also escape plus and percent when generating the repo name from the wheel version.
Sometimes they have such characters in them.

Fixes #2799

@keith keith force-pushed the ks/fix-escape-more-invalid-repo-string-characters branch from 4df87bc to 2653573 Compare April 21, 2025 22:00
@rickeylev rickeylev enabled auto-merge April 21, 2025 22:11
@rickeylev
Copy link
Collaborator

Thanks!

@rickeylev rickeylev added this pull request to the merge queue Apr 22, 2025
Merged via the queue into bazel-contrib:main with commit e14cd37 Apr 22, 2025
3 checks passed
aignas added a commit to aignas/rules_python that referenced this pull request Apr 22, 2025
In addition to bazel-contrib#2801 I wanted to ensure that we are getting the correct
filename when downloading wheels. It seems that the `%` in the wheel
filename might get through wheels that get referenced via direct URL in
the requirements.txt files.
aignas pushed a commit that referenced this pull request Apr 22, 2025
Also escape plus and percent when generating the repo name from the
wheel version.
Sometimes they have such characters in them.

Fixes #2799

Co-authored-by: Richard Levasseur <rlevasseur@google.com>
(cherry picked from commit e14cd37)
github-merge-queue bot pushed a commit that referenced this pull request Apr 22, 2025
In addition to #2801 I wanted to ensure that we are getting the correct
filename when downloading wheels. It seems that the `%` in the wheel
filename might get through wheels that get referenced via direct URL in
the requirements.txt files.

---------

Co-authored-by: Richard Levasseur <richardlev@gmail.com>
Co-authored-by: Richard Levasseur <rlevasseur@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid user-provided repo name
3 participants