mise-nix icon indicating copy to clipboard operation
mise-nix copied to clipboard

version.lua semver sorting causing out or order versioning for some packages

Open TyceHerrman opened this issue 1 month ago • 2 comments

See my issue I raised thinking this was something related to nixhub. I'm pretty sure this is instead an issue with how version.lua in mise-nix uses semver for sorting package versions. For something like github-copilot-cli that was republished on npm, this causes older versions to be treated as newer than they are.

Maybe there's some way to inherit nixhub's package version ordering directly instead of re-ordering them with mise-nix?

TyceHerrman avatar Nov 17 '25 18:11 TyceHerrman

Another case where this happens: https://www.nixhub.io/packages/ty. packages have alpha.# format, and alpha.9 is getting selected as latest even though it's alpha.26 currently.

TyceHerrman avatar Nov 19 '25 00:11 TyceHerrman

Look like a bug. Will fix this.

jbadeau avatar Nov 20 '25 13:11 jbadeau