-
-
Notifications
You must be signed in to change notification settings - Fork 591
regression in 1.4.0-rc1 #2815
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
Comments
This sounds like the bug @keith and @aignas just fixed with #2806 Judging the the error, it sounds like the I can't tell which version of |
Here's an easier repro:
Should result in an error similar to reported. I saw errors relating to both toml/tomli missing and importlib_metadata. |
Hm, I'm not sure if this is a bug with rules_uv or some idiosyncracy of pip that was covering something up? requirements.txt, generated by rules_uv, was missing importlib_metadata. So it's not surprising that no BUILD file gets generated for it, and thus At the same time,
Guess as to what's happening:
The actual python version used, in this build anyways, is 3.10.16. A workaround might be to add importlib_metadata to requirements.in. This will get the repo generated, however, it also means importlib_metadata will be part of the dependencies. For reference, excerpt foom
|
Ah this is related to #2319. So the short story is:
If the CI in the PR is green, could you please (@baxelrod-bdai) check if adding it as a patch fixes the issue you are seeing? |
EDIT: Opened #2820 for cherry-picking the changes. |
I tested with the patch and it seems to work. Thanks! |
🐞 bug report
Affected Rule
bazel build //...
errors out when usingrules_python
1.4.0-rc1
(andrc0
) on a small repository.Is this a regression?
Yes,
rules_python
1.3.0
builds fine.Description
The build error:
I'm running
rules_uv
like this:Relevant versions:
On Linux Ubuntu 22.04, x86.
🔬 Minimal Reproduction
I'm not sure how to minimally reproduce. But my
requirements.in
file has only:The text was updated successfully, but these errors were encountered: