Skip JDK 25 metadata schema check on macOS x64 by jormundur00 · Pull Request #888 · graalvm/native-build-tools (original) (raw)
Summary
Fixes #887.
Native Build Tools 1.0.0+ validates the reachability metadata schema against the schema bundled in GraalVM. GraalVM JDK 25.0.0 and 25.0.1 do not bundle that schema, and macOS x64 users cannot move to 25.0.2+ because that platform is no longer shipped for JDK 25.
This keeps repository schema validation unchanged, but skips the GraalVM/repository reachability metadata schema cross-check when running with JDK 25 on macOS x64.
Testing
JAVA_HOME=/home/jovan/.sdkman/candidates/java/17.0.12-graal ./gradlew -p common/utils test- Local Linux diagnostic check with
GRAALVM_HOME=/home/jovan/.sdkman/candidates/java/25.0.1-graal ./.github/workflows/test-jdk25-reachability-schema.shfails with the expected missing GraalVM reachability schema error.
Notes
The final commit is a temporary [TEST] workflow for PR validation. It runs the same JDK 25.0.1 schema check on macOS x64 and Linux; macOS x64 should pass through the compatibility bypass, while Linux should fail on the JDK 25.0.1 schema mismatch.