Skip to main content

Module fetch

Module fetch 

Source
Expand description

What is published: the latest release, the green nightly, and ancestry.

Parsing is pure (release_candidate, nightly_candidate, ancestry_of); only Net touches the network, so tests hand in a fake.

Structs§

Http
The real network: ureq with a hard timeout.

Constants§

HAND_SMOKE_MARKER
The line a release manager writes into an -rc prerelease’s notes once the hand-smoke passed. Until it is there the prerelease is not installable.

Traits§

Net
One HTTP GET. Ok(None) is a 404; every other failure is Err.

Functions§

ancestry
Ancestry by the compare API; any failure is None (unknown), which the decision treats conservatively.
ancestry_of
The status field of a GitHub compare response.
asset_name
Fill {bin}, {tag}, {version} and {target} in an asset template.
latest_release
newest_release_candidate
The highest-versioned eligible release in a /releases list that carries this target’s asset. Semver orders 0.69.1 < 0.69.3-rc.1 < 0.69.3, so a hand-smoked rc supersedes the last release and the final tag supersedes it.
nightly
nightly_candidate
This target’s tool entry in an aprender-nightly-manifest/v1 (#4189), if the target is green and carries both digests.
release_candidate
A release’s asset for this product and target, if it has one. A release without this bin’s asset is no candidate: never announce a build that update could not install.