Skip to content

fix: Strip trailing slash for repo url#2495

Merged
rickeylev merged 2 commits intobazel-contrib:mainfrom
amartani:strip-slash
Dec 11, 2024
Merged

fix: Strip trailing slash for repo url#2495
rickeylev merged 2 commits intobazel-contrib:mainfrom
amartani:strip-slash

Conversation

@amartani
Copy link
Copy Markdown
Contributor

@amartani amartani commented Dec 11, 2024

Strip potential trailing slash when building url on the case of relative path without up-references. In particular, this fixes using experimental_index_url with a AWS CodeArtifact python repository, which currently fails package downloads due to an incorrect URL (with double //) being produced by this code.

@amartani amartani changed the title fix: Strip leading slash for repo url fix: Strip trailing slash for repo url Dec 11, 2024
@amartani amartani marked this pull request as ready for review December 11, 2024 00:30
@rickeylev rickeylev enabled auto-merge December 11, 2024 00:31
@rickeylev
Copy link
Copy Markdown
Collaborator

Thanks for the PR! CI failures look unrelated, so I've approved and queued it. We'll have the CI stuff fixed in the next day or so.

@rickeylev rickeylev added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@rickeylev rickeylev added this pull request to the merge queue Dec 11, 2024
Merged via the queue into bazel-contrib:main with commit e823657 Dec 11, 2024
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.

2 participants