We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have a target like this:
py_test( name = "pytest_test/nested", srcs = [ "foo_test.py", ":__test__", ], env_inherit = ["FOO"], imports = ["../.."], main = ":__test__.py", package_collisions = "warning", deps = [ ":__test__", "@pypi_ftfy//:pkg", "@pypi_neptune//:pkg", "@pypi_pytest//:pkg", ], )
Running this test works with rules_python and fails with rules_py with:
Error: × Unable to run command: ├─▶ Unable to get full source dir path ╰─▶ No such file or directory (os error 2)
Development (host) and target OS/architectures: Ubuntu 22.04
Output of bazel --version: 7.4.0
bazel --version
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:
WORKSPACE
MODULE.bazel
Language(s) and/or frameworks involved:
Run the test modified on this branch: #484
No response
The text was updated successfully, but these errors were encountered:
Repro for aspect-build#483
b278b24
adding some logging I bet the issue is that this path join:
"/home/ubuntu/.cache/bazel/_bazel_ubuntu/cbd66eedddd4d083f5e4d752aed24a45/sandbox/linux-sandbox/19/execroot/aspect_rules_py/bazel-out/k8-fastbuild/bin/examples/pytest/pytest_test/nested.runfiles/.pytest_test/nested.venv/lib/python3.9/site-packages" ::: "../../../../pypi_exceptiongroup/site-packages"
the second path is off by 1 ../ because of the target adding another level of nesting
../
Sorry, something went wrong.
Fix py_test with nested target name
ce7ed5c
Fixes aspect-build#483
Successfully merging a pull request may close this issue.
What happened?
If you have a target like this:
Running this test works with rules_python and fails with rules_py with:
Version
Development (host) and target OS/architectures: Ubuntu 22.04
Output of
bazel --version
: 7.4.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
Run the test modified on this branch: #484
Any other information?
No response
The text was updated successfully, but these errors were encountered: