-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
[Bug]: py_binary expression expands to more than one file #455
Comments
The reason this works in rules_python is that they use an exposed internal method to expand the files, rather than the one on That being said, it likely makes sense to remove the other outputs from |
Will removing those extra files not break some other workflow? |
This mirrors rules_python to ensure that users can use `execpath` with a py_binary target. Fixes aspect-build#455
here's that change if not: #467 |
maybe bazelbuild/bazel#24690 is the better solve here |
What happened?
Using rules_python's py_binary like this:
Works fine, but if you do the same with rules_py's py_binary, you get this error:
Version
Development (host) and target OS/architectures: ubuntu 22.04
Output of
bazel --version
: bazel 7.4.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: see repro case belowHow to reproduce
On this branch: #456
bazel build :upstream_py_binary2
works finebazel build :py_binary2
fails with the above errorAny other information?
No response
The text was updated successfully, but these errors were encountered: