Skip to content

fix: Avoid creating URLs with empty path segments from index URLs in environment variables #2557

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

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

WillMorrison
Copy link
Contributor

This change updates _read_simpleapi such that it correctly handles the case where the index URL is specified in an environment variable and contains a trailing slash. The URL construction would have introduced an empty path segment, which is now removed.

Fixes: #2554

Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments only.

WillMorrison and others added 2 commits January 14, 2025 19:36
Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
@WillMorrison WillMorrison requested a review from aignas January 14, 2025 18:40
Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

@aignas aignas added this pull request to the merge queue Jan 14, 2025
Merged via the queue into bazel-contrib:main with commit eef839b Jan 14, 2025
4 checks passed
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.

Trailing slashes not removed from pip index URLs in environment variables before concatenation.
2 participants