rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

kt_jvm_test fails when classpath too long (Mac)

Open jongerrish opened this issue 5 years ago • 1 comments

a kt_jvm_test with a large number of dependencies fails on a mac

grep: /private/var/tmp/_bazel_jgerrish/a38eb588e179bbe7b067d6d1199c1c1d/sandbox/darwin-sandbox/545/execroot/__main__/bazel-out/darwin-fastbuild/bin/path/to/my/test/MyTest.runfiles/MANIFEST: No such file or directory
/private/var/tmp/_bazel_jgerrish/a38eb588e179bbe7b067d6d1199c1c1d/sandbox/darwin-sandbox/545/execroot/__main__/bazel-out/darwin-fastbuild/bin/path/to/my/test/MyTest.runfiles/__main__/path/to/my/test/MyTest: line 336: cvfm: command not found

Looks like its failing in Bazel Java rules here:-

https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt#L343

$JARBIN is coming back empty?

With a shorter set of dependencies the test runs and passes.

Not sure if there is anything that can be done in the Kotlin rules or if its a bug in Bazel proper.

jongerrish avatar Jun 25 '20 23:06 jongerrish

https://github.com/bazelbuild/bazel/issues/6955

ittaiz avatar Jul 13 '22 15:07 ittaiz