You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is no local JDK installed, running $ bazel run @maven//:pin fails with the following message:
INFO: Repository maven instantiated at:
no stack (--record_rule_instantiation_callstack not enabled)
Repository rule coursier_fetch defined at:
/private/var/tmp/_bazel_mikhailtymchuk/b9e5d63d3710c48dc7e8e425579b45fb/external/rules_jvm_external/coursier.bzl:798:33: in <toplevel>
INFO: Repository 'maven' used the following cache hits instead of downloading the corresponding file.
* Hash '6598d9277705ad8369a4f9c64217fbc31c19234f2cbcca9b1e5c4300a3abb317' for https://github.com/coursier/coursier/releases/download/v2.0.0-RC5-3/coursier.jar
If the definition of 'maven' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'maven':
Unable to run coursier: No Java runtime present, requesting install.
ERROR: Unable to run coursier: No Java runtime present, requesting install.
INFO: Elapsed time: 0.347s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
Feature requests: what underlying problem are you trying to solve with this feature?
I'm trying to create maven_install.json file on a host without JDK.
I expect bazel uses embedded JDK (because it cannot use JDK provided as --host_javabase - it's too late, coursier already needs JDK at this moment).
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Description of the problem / feature request:
When there is no local JDK installed, running
$ bazel run @maven//:pin
fails with the following message:Feature requests: what underlying problem are you trying to solve with this feature?
I'm trying to create
maven_install.json
file on a host without JDK.I expect bazel uses embedded JDK (because it cannot use JDK provided as
--host_javabase
- it's too late, coursier already needs JDK at this moment).Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Complete example can be found here: https://github.com/MikhailTymchukFT/bazel-coursier-java-home-bug
WORKSPACE:
What operating system are you running Bazel on?
MacOS 10.15.6
What's the output of
bazel info release
?release 3.4.1
Have you found anything relevant by searching the web?
Found a similar issue: bazelbuild/bazel#6993
However, there is no coursier-related problems there.
The text was updated successfully, but these errors were encountered: