pub enum ReleaseAnswer {
Stands {
mine: ReleaseLine,
registries: Vec<RegistryNewest>,
verdict: ReleaseVerdict,
update: UpdateHint,
},
Unreleased {
registries: Vec<RegistryNewest>,
update: UpdateHint,
},
Refused {
refusal: AxError,
},
}Expand description
Where this city stands against the release channel.
Exhaustive rather than a pair of optional fields: “you are running a release and here is where it stands”, “you built this yourself, so there is nothing to compare” and “the registry could not be read” are three different things for a person to do next, and only the first of them is a version number.
Variants§
Stands
This binary came out of a release, and here is where it stands.
verdict judges mine against npm’s line, which is what
bunx sprawling resolves.
Unreleased
This binary was built from a working tree, so it is none of the published releases. Reporting it as out of date would be answering about a binary the person is not running.
Refused
The check could not be made. Carries why, because “could not check” leaves a person believing they checked.