rules_kotlin
rules_kotlin copied to clipboard
kt_jvm_test fails when classpath too long (Mac)
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.
https://github.com/bazelbuild/bazel/issues/6955