OpenAPITools / openapi-generator-bazel

Bazel plugin for OpenAPI Generator
Apache License 2.0
66 stars 46 forks source link

Builds with a different platform fail due to wrong java toolchain being selected #58

Open hjellek opened 3 weeks ago

hjellek commented 3 weeks ago

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.