Skip to main content

Module version

Module version 

Source
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§

ParsedRef
Outcome of normalising a ref string for semver comparison.

Functions§

is_downgrade
Returns true when proposed parses as a strictly lower version than current under semver precedence.
parse_ref
Normalise raw into a ParsedRef for semver comparison.