Skip to content

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Apr 3, 2025

Whilst integrating #2695 I introduced a regression and here I add a test
for that and fix it. The code that was getting the filename from the URL
was too eager and would break if there was a git ref as noted in the
test.

Before this commit and #2695 the code was not handling all of the cases
that are tested now either, so I think now we are in a good place. I am
not sure how we should handle the git_repository URLs. Maybe having
http_archive and git_repository usage would be nice, but I am not sure
how we can introduce it at the moment.

Work towards #2363

Whilst integrating bazel-contrib#2695 I introduced a regression and here I add a test
for that and fix it. The code that was getting the filename from the URL
was too eager and would break if there was a git ref as noted in the
test.

Before this commit and bazel-contrib#2695 the code was not handling all of the cases
that are tested now either, so I think now we are in a good place. I am
not sure how we should handle the `git_repository` URLs. Maybe having
`http_archive` and `git_repository` usage would be nice, but I am not sure
how we can introduce it at the moment.

Work towards bazel-contrib#2363
@aignas aignas requested review from groodt and rickeylev as code owners April 3, 2025 11:02
@aignas
Copy link
Collaborator Author

aignas commented Apr 3, 2025

The CI failure is a flake.

@aignas aignas added this pull request to the merge queue Apr 5, 2025
Merged via the queue into bazel-contrib:main with commit 537fc4b Apr 5, 2025
3 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.

2 participants