Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java not found with bzlmod and --nolegacy_external_runfiles #1061

Open
agluszak opened this issue Oct 27, 2023 · 2 comments
Open

java not found with bzlmod and --nolegacy_external_runfiles #1061

agluszak opened this issue Oct 27, 2023 · 2 comments

Comments

@agluszak
Copy link
Contributor

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
Copy link
Contributor Author

Possibly related: #924

@drmercer-lucid
Copy link

I believe this was just fixed - see #1242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants