Re:Announcing Rust 1.30
by Boulth on Friday October 26, 2018 @10:35AM
(#18309560)
I was mainly proposing using paths and added URLs as an interesting tidbit but if you check the Dhall Readme I linked there is an example with content integrity (sha256 checksum). As for versioning: use different URL for different version! Even simple /v1 and /v2 would work.
[ Parent
| on HN ]
Re:Announcing Rust 1.30
by oconnor663 on Friday October 26, 2018 @10:41AM
(#18309621)
I latched onto the URL idea because it's something we're wondering about with the `peru` project today :) https://github.com/buildinspace/peru/issues/193
Totally, fetching a single version through URLs works now, even on GitHub if you use tags. The tricky part is saying "I'm using 1.0, and 1.1 just came out, so I should upgrade to that." That requires ecosystem-wide agreement that everyone's going to use SemVer, and it assumes that everything's hosted in git or similar where there's a standard way to enumerate the available versions.
Well tags are usually perceived as immutable but one can imagine adding an info to the tag with the "next version" coordinates.
For example, tag v1.0: and a text at the bottom of the message "Next-Version: v1.1".
Or if one can enumerate versions/tags you could add back pointers to new versions/tags. Example, tag v1.1 with message including "Replaces-Version: v1.0".