DeterminateSystems / riff

Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
https://riff.sh
Mozilla Public License 2.0
486 stars 13 forks source link

Invite user to update when available #71

Closed Hoverbear closed 2 years ago

Hoverbear commented 2 years ago

Warning!!!!: This PR breaks the registry! latest_riff_version is a required field. We can make it optional if we desire.

image

This adds a latest_riff_version to the registry which we can then read later to let the user know a new version is available.

You should test this with --offline, and remove the $XDG_CACHE_DIR/fsm/registry.json (and edit the registry/registry.json) or edit the cached version.

Open questions

linear[bot] commented 2 years ago

DS-281 Include "latest version" information in the registry API to invite people to download an updated copy

Hoverbear commented 2 years ago

Gonna alter the behavior if we sent rubbish in this field from the registry update...