bazel run
probably fails on long classpaths
#1392
Labels
category: misc > misc
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
type: bug
This report is based off reading source code rather than something I've actually repro'd, so apologies if I'm missing something.
Linux tends to limit the max length of a command line to around 128k. This can be a problem for Bazel java compilation since it requires jars for every transitive dep to be specified in the classpath. The java run script attempts to mitigate this by echoing the classpath to a file and using it as an
@argfile
. But argfiles are only implemented in stock JDK in Java 9, which public Bazel isn't using. So I believe this will fail if anyone tries tobazel run
a Java binary with a large number of transitive deps.The text was updated successfully, but these errors were encountered: