Closed dkowis closed 7 months ago
Most likely caused by #1957 which tightens the fuzzy matching to prevent installing the newest version for e.g. openjdk-21
, oracle-21
, sapmachine-21
etc. These distributions have major versions without minor/patch version numbers and could therefore not be installed reliably. Especially if you want a x.0.0
version or you need to switch between x.0.0
and x.0.x
versions.
To have always the newest version of a distribution installed i suggest to use the prefix:
scope.
For example mise use java@prefix:corretto-21
.
@jdx #1887 should be re-opened in case of revert.
We could adapt the fix #1957 to apply only for certain distributions liberica
, liberica-lite
, openjdk
, oracle
, oracle-graalvm
and sapmachine
. This would fix both issues but keep the inconsistencies, corretto-21
installs newest while openjdk-21
does not. On the other hand there will be no way to install openjdk-21(.0.0)
otherwise.
yeah I think the best solution is to special-case these. Thankfully new java distros don't pop up super frequently
Okey, will have another look at that tomorrow.
Describe the bug I keep my java version only at the latest major, so that it will automatically pull in and install the various patch levels. so the version for java is
corretto-21
To Reproduce
mise install java@corretto-21
Expected behavior mise would go get and install the latest java corretto-21.0.whatever
mise doctor
outputAdditional context I suspect this is a regression, as it worked up until today, at the latest version of mise v2024.4.9 that I just installed via cargo