Trying to build an openapi_generator target with a different platform bazel build --platforms=//:linux_x64 ... on an M1 mac (darwin_arm64) ends up using the wrong java toolchain: /bin/bash: external/remotejdk21_linux/bin/java: cannot execute binary file
Same the other way around for linux_x64 trying to build for darwin_arm64.
Would expect the toolchain to handle host platform correctly for the java binary.
Trying to build an
openapi_generator
target with a different platformbazel build --platforms=//:linux_x64 ...
on an M1 mac (darwin_arm64) ends up using the wrong java toolchain:/bin/bash: external/remotejdk21_linux/bin/java: cannot execute binary file
Same the other way around for
linux_x64
trying to build fordarwin_arm64
.Would expect the toolchain to handle host platform correctly for the java binary.