rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

java not found with bzlmod and `--nolegacy_external_runfiles`

Open agluszak opened this issue 2 years ago • 2 comments

Repro: https://github.com/agluszak/bzlmod-playground/tree/rules_kotlin_legacy_bzlmod

andrzej@MUNIT-521 ~/c/b/bzlmod-playground (rules_kotlin_legacy_bzlmod)> bazel test //...
INFO: Analyzed 2 targets (27 packages loaded, 349 targets configured).
INFO: Found 1 target and 1 test target...
FAIL: //:test (see /home/andrzej/.cache/bazel/_bazel_andrzej/554d6595289376b6e5422fdcf90c9ed5/execroot/_main/bazel-out/k8-fastbuild/testlogs/test/test.log)
INFO: Elapsed time: 0.357s, Critical Path: 0.05s
INFO: 2 processes: 2 linux-sandbox.
INFO: Build completed, 1 test FAILED, 2 total actions
//:test                                                                  FAILED in 0.0s
  /home/andrzej/.cache/bazel/_bazel_andrzej/554d6595289376b6e5422fdcf90c9ed5/execroot/_main/bazel-out/k8-fastbuild/testlogs/test/test.log

Executed 1 out of 1 test: 1 fails locally.
andrzej@MUNIT-521 ~/c/b/bzlmod-playground (rules_kotlin_legacy_bzlmod) [3]> cat /home/andrzej/.cache/bazel/_bazel_andrzej/554d6595289376b6e5422fdcf90c9ed5/execroot/_main/bazel-out/k8-fastbuild/testlogs/test/test.log
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //:test
-----------------------------------------------------------------------------
/home/andrzej/.cache/bazel/_bazel_andrzej/554d6595289376b6e5422fdcf90c9ed5/sandbox/linux-sandbox/18/execroot/_main/bazel-out/k8-fastbuild/bin/test.runfiles/_main/test: line 396: /home/andrzej/.cache/bazel/_bazel_andrzej/554d6595289376b6e5422fdcf90c9ed5/sandbox/linux-sandbox/18/execroot/_main/bazel-out/k8-fastbuild/bin/test.runfiles/_main/external/rules_java~6.4.0~toolchains~local_jdk/bin/java: No such file or directory

agluszak avatar Oct 27 '23 14:10 agluszak

Possibly related: #924

agluszak avatar Oct 27 '23 14:10 agluszak