-
Notifications
You must be signed in to change notification settings - Fork 543
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
Cannot use runfiles.python
import path when running bazel coverage
#2009
Comments
I feel like this patch fixes the immediate issue:
I could raise a PR with this change if it was thought to be a good idea. Edit: Now think this may not work with bazlmod where the directory is |
It is also possible to fix with |
I think this is the same issue that I saw below: I found this when working on an unrelated change. This means that technically, a |
runfiles.python
import path when running bazel coverage
🐞 bug report
Affected Rule
compile_pip_requirements
Is this a regression?
Not sure.
Description
In some situations it is possible to get a conflict between the python module from the coverage package and the python package from the runfiles library. I would say this is due to the slightly risky use of "python" as a module/package name and the import
from python.runfiles import runfiles
in dependency_resolver.py.🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
The text was updated successfully, but these errors were encountered: