-
Notifications
You must be signed in to change notification settings - Fork 547
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
pip.override in upstream modules but got "overrides are only supported in root modules" #2513
Comments
After I deleting the patch part of dependent module, the error is gone, so I'm sure it is introduced by the |
What is the setup? I am not sure I fully understand why the non-root module needs to do the overrides? Just like |
Hi @aignas, Thank you for your response. I'd like to provide some additional context regarding our situation. We are currently working with an upstream project, referred to as "A", which is an independent entity. Project "A" has an override for torch specified in its
Our own project, "B", which depends on project "A", is encountering an error during compilation:
We are uncertain whether the override in project "A" is implemented correctly, or if there is a method for us to incorporate patches for pip packages within "A" without impacting downstream projects that rely on "A". Any guidance you could provide on this matter would be greatly appreciated. |
🐞 bug report
Affected Rule
The issue is caused by the rule: https://github.com/bazelbuild/rules_python/blob/66a8b5b595710bd107c31ad5d449593536effb76/python/private/pypi/extension.bzl#L404Is this a regression?
NoDescription
I'm migrating from WORKSPACE to bzlmod.
There is a library
A
, in which it has patches likeAnd I have another project
B
, which depends on A, however after adding deps likebazel_dep(name = "A", version = "x.y.z")
I got the error
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: