Also, JVM-related tests fail with: ```$ pants test...
# development
h
Also, JVM-related tests fail with:
Copy code
$ pants test src/python/pants/backend/java/compile/javac_test.py
...
E       ValueError: Failed to locate Java for JDK `adopt:1.12`:
E       JVM adopt:1.12 not found in index: JVM adopt not found
E       /bin/bash: /bin/java: No such file or directory
I know only little about the JVM backend, but isn't it supposed to install JDKs as needed?
Using coursier?
Oh, I guess that is exactly what it's trying to do, but
adopt:1.12
doesn't exist?
Indeed I don't see it listed in
coursier java --available
(and in fact I see no
adopt:*
or `*:1.12*)
Hmm, it does exist if I use
cs
as the entry point. My ignorance on full display here, but will keep digging.
UGH
This is an Apple Silicon thing:
Copy code
$ curl -sL <https://raw.githubusercontent.com/coursier/jvm-index/master/indices/darwin-amd64.json> | grep '"jdk@adopt"'
  "jdk@adopt": {
$ curl -sL <https://raw.githubusercontent.com/coursier/jvm-index/master/indices/linux-arm64.json> | grep '"jdk@adopt"'
  "jdk@adopt": {
$ curl -sL <https://raw.githubusercontent.com/coursier/jvm-index/master/indices/linux-amd64.json> | grep '"jdk@adopt"'
  "jdk@adopt": {
$ curl -sL <https://raw.githubusercontent.com/coursier/jvm-index/master/indices/darwin-arm64.json> | grep '"jdk@adopt"'
$