Skip to content

Fix whl_library file path inference #2876

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 1 commit into from
May 14, 2025
Merged

Conversation

gholms
Copy link
Contributor

@gholms gholms commented May 14, 2025

When given .whl file URLs and no file name, whl_library writes the
wheel it downloads to a file with the same file name as the first URL's.
But then at extraction time, it always consults ctx.attr.filename
for that file name, leading to failure when that attribute is None.
This patch should fix that.

Related #2363

@aignas aignas added this pull request to the merge queue May 14, 2025
@aignas aignas removed this pull request from the merge queue due to a manual request May 14, 2025
@aignas aignas added this pull request to the merge queue May 14, 2025
Merged via the queue into bazel-contrib:main with commit 61b5a8d May 14, 2025
3 checks passed
@gholms gholms deleted the whl-path branch May 15, 2025 00:26
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