Mise manager: Java update produces versions incompatible with mise when no vendor prefix is used #41159
Unanswered
snutij
asked this question in
Request Help
Replies: 1 comment
-
|
we need to set a different extract version depending on short or not short version. this is entirely independent of the prefix. renovate will not add or remove it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate CLI
Which platform you running Renovate on?
GitHub.com
Which version of Renovate are you using?
41.173.1
Please tell us more about your question or problem
Description
The mise manager produces Java version updates that are incompatible with mise when the original version uses a bare shorthand (no vendor prefix).
In mise,
java = "21"is a shorthand that resolves to OpenJDK (docs: "shorthand versions (like21) useOpenJDKas the vendor").However, Renovate's
java-versiondatasource fetches versions exclusively from the Adoptium (Temurin) API (api.adoptium.net), returning versions like21.0.10+7.0.LTS. When themise manager proposes this update, it writes
java = "21.0.10+7.0.LTS"— a version string that does not exist in mise without thetemurin-prefix.Current behavior
Given
mise.toml:Renovate produces:
Running mise install then fails:
Expected behavior
Either:
Minimal reproduction
Root cause
In upgradeable-tooling.ts, the Java handler strips the vendor context:
renovate/lib/modules/manager/mise/upgradeable-tooling.ts
Lines 63 to 71 in 26db162
The java-version datasource (index.ts) fetches from the Adoptium API exclusively, returning Temurin version strings. But the mise manager writes these back without the temurin- prefix, producing an invalid version for mise.
The same issue would apply to vendor-prefixed versions (e.g. temurin-21, corretto-21) — the handler extracts the version number but doesn't preserve the prefix when writing back.
Logs (if relevant)
Logs anonymized from the private repository where I discovered this issue.
Beta Was this translation helpful? Give feedback.
All reactions