Expand description
Ref-string normalisation shared by the forge tag-listing path and the update-strategy classifier.
Tag schemes in the wild are inconsistent (v1.2.3,
refs/tags/v1.2.3, release-24.05, bare 1.0). parse_ref
reduces each input to a semver::Version-parseable string plus
the metadata needed to put any stripped prefix back when the
update writes the new ref into flake.nix.
Structs§
- Parsed
Ref - Outcome of normalising a ref string for semver comparison.
Functions§
- is_
downgrade - Returns
truewhenproposedparses as a strictly lower version thancurrentunder semver precedence. - parse_
ref - Normalise
rawinto aParsedReffor semver comparison.