From c8cffce0ae93e3b6a601b5e86ada50c2d34d7a11 Mon Sep 17 00:00:00 2001 From: William Storey Date: Wed, 14 Oct 2026 19:14:30 +0000 Subject: [PATCH] Lock mise Java to Temurin mise 2026.10.5 changed the default vendor for a bare `java` version from OpenJDK to Temurin. Our lock records OpenJDK with `shorthand_vendor = "openjdk"`, so with mise 2026.10.5 or later, `mise install --locked` fails with "java@latest is not in the lockfile". This breaks the Pages workflow and the mise enter hook. Run `mise lock --bump java` to lock `java = "latest"` to Temurin. This moves the locked version from OpenJDK 26.0.1 to Temurin 27.0.0+35. Temurin publishes no macOS x64 build of Java 27, and the bump fails while the lock covers that platform. Set `lockfile_platforms` to the platforms the lock already covered, without macos-x64. The other tools keep their existing lock entries. STF-2089 Co-Authored-By: Claude Opus 5.5 --- mise.lock | 32 ++++++++++++++++++-------------- mise.toml | 11 +++++++++++ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/mise.lock b/mise.lock index f095e826..d98fdd29 100644 --- a/mise.lock +++ b/mise.lock @@ -33,31 +33,35 @@ checksum = "sha256:f330476374b604d3bc0e33a929ff476e9623bc62938f16846e832620545cd url = "https://github.com/gohugoio/hugo/releases/download/v0.163.3/hugo_0.163.3_windows-amd64.zip" [[tools.java]] -version = "26.0.1" +version = "27.0.0+35" backend = "core:java" [tools.java.options] -shorthand_vendor = "openjdk" +shorthand_vendor = "temurin" [tools.java."platforms.linux-arm64"] -checksum = "sha256:12a3649b2f4a0c9f6491d220bdd04b4fff07cae502b435aaff46eac0e36f4df1" -url = "https://download.java.net/java/GA/jdk26.0.1/458fda22e4c54d5ba572ab8d2b22eb83/8/GPL/openjdk-26.0.1_linux-aarch64_bin.tar.gz" +checksum = "sha256:e4ec5c7276290c7bde0baecba9a29be4962f5388684296406a9799d465936087" +url = "https://github.com/adoptium/temurin27-binaries/releases/download/jdk-27%2B35/OpenJDK27U-jdk_aarch64_linux_hotspot_27_35.tar.gz" + +[tools.java."platforms.linux-arm64-musl"] +checksum = "sha256:440353d641e7726396dff5d9a9d0d17c05a070dc25664c20f9d7efafc2f16cf7" +url = "https://github.com/adoptium/temurin27-binaries/releases/download/jdk-27%2B35/OpenJDK27U-jdk_aarch64_alpine-linux_hotspot_27_35.tar.gz" [tools.java."platforms.linux-x64"] -checksum = "sha256:2f2802d57b5fc414f1ddf6648ba12cc9a6454cf67b32ac95407c018f2e6ab0b0" -url = "https://download.java.net/java/GA/jdk26.0.1/458fda22e4c54d5ba572ab8d2b22eb83/8/GPL/openjdk-26.0.1_linux-x64_bin.tar.gz" +checksum = "sha256:1cf69a4848ffb728b3b260dfd45206a51566ab571a02a30092271d4c580bccbc" +url = "https://github.com/adoptium/temurin27-binaries/releases/download/jdk-27%2B35/OpenJDK27U-jdk_x64_linux_hotspot_27_35.tar.gz" -[tools.java."platforms.macos-arm64"] -checksum = "sha256:b2d57405194a312ed4ec6ec08e83b314d3fd2e425e895d704ec5ef8ea6059e17" -url = "https://download.java.net/java/GA/jdk26.0.1/458fda22e4c54d5ba572ab8d2b22eb83/8/GPL/openjdk-26.0.1_macos-aarch64_bin.tar.gz" +[tools.java."platforms.linux-x64-musl"] +checksum = "sha256:45aef7cd5ae667c6f5dd100c96a99e5a00e61c512664bb13326cf149b7d37e0f" +url = "https://github.com/adoptium/temurin27-binaries/releases/download/jdk-27%2B35/OpenJDK27U-jdk_x64_alpine-linux_hotspot_27_35.tar.gz" -[tools.java."platforms.macos-x64"] -checksum = "sha256:e52bc05aefe4991329a6a103c9b42ae4b9b77240a9f9d3d12f6a7365db1ae16a" -url = "https://download.java.net/java/GA/jdk26.0.1/458fda22e4c54d5ba572ab8d2b22eb83/8/GPL/openjdk-26.0.1_macos-x64_bin.tar.gz" +[tools.java."platforms.macos-arm64"] +checksum = "sha256:a59626c926f0146a286cb535fc9a46499d6c46b3d79ae72168bbf18438fe49dd" +url = "https://github.com/adoptium/temurin27-binaries/releases/download/jdk-27%2B35/OpenJDK27U-jdk_aarch64_mac_hotspot_27_35.tar.gz" [tools.java."platforms.windows-x64"] -checksum = "sha256:b381d30647aed9ff440abed5ab61af01d8578c290cd407c57e064ebc4b0151be" -url = "https://download.java.net/java/GA/jdk26.0.1/458fda22e4c54d5ba572ab8d2b22eb83/8/GPL/openjdk-26.0.1_windows-x64_bin.zip" +checksum = "sha256:2031c9c5c624737ed29a0624caaf5bcc25e74235834c28b4bfa88f7ba7a40e4a" +url = "https://github.com/adoptium/temurin27-binaries/releases/download/jdk-27%2B35/OpenJDK27U-jdk_x64_windows_hotspot_27_35.zip" [[tools.lychee]] version = "0.24.2" diff --git a/mise.toml b/mise.toml index 9ac550c4..45c95e44 100644 --- a/mise.toml +++ b/mise.toml @@ -6,6 +6,17 @@ disable_backends = [ "vfox", ] +# Temurin, the default vendor for `java = "latest"`, has no macOS x64 build +# of Java 27, so the lockfile leaves out macos-x64. +lockfile_platforms = [ + "linux-arm64", + "linux-arm64-musl", + "linux-x64", + "linux-x64-musl", + "macos-arm64", + "windows-x64", +] + [tools] hugo = "latest" java = "latest"