mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
nixpkgs-update already bumps sbt from its own version detection, but sbt keeps 1.x and 2.x alive at once and ships them on the same day -- v2.0.6 and v1.12.15 both landed 2026-08-07. Anything keyed on the most recently published release can therefore propose a downgrade, so this picks the highest version out of the tags instead and refuses to go backwards. The X.Y.Z filter drops release candidates. sbt does flag those as prereleases on GitHub, but tags carry no such marker and v2.1.0-RC1 would otherwise sort above v2.0.6. $UPDATE_NIX_ATTR_PATH is ignored because sbt-with-scala-native is sbt.overrideAttrs and inherits this passthru, while its meta.position points at its own file rather than the one holding the version. Assisted-by: Claude Code (Claude Opus 5)