[Bug]: java.io.IOException: Cannot run program ... Argument list too long
when generating pex
#542
Labels
bug
Something isn't working
What happened?
I had an existing
py_binary
I was originally building withrules_python
and I switched to usingaspect_rules_py
to generate a pex file. The py_binary depends on justgoogle-api-core
,google-auth
,google-cloud-secret-manager
,bazel-runfiles
, andpyyaml
packages, and contained a total of 5 source files. When compiling the pex target, it fails with:When inspecting the logs, the arguments fed into the
_pex
executable is full of:There were 4.4mb worth of args being passed in total. There is probably another bug in here with regards to how it is passing
--source
for every file of every package (and transitive package) which is ultimately led to the argument list too long error. I'll see if I can sus out that bug in the next few days and provide a repro case.Version
Development (host) and target OS/architectures:
MacOS
Darwin chayes.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 arm64
Output of
bazel --version
:bazel 9.0.0-pre.20250307.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:1.3.2
Language(s) and/or frameworks involved:
Python
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: