suborbital / subo

The Suborbital CLI
Apache License 2.0
81 stars 24 forks source link

Remove version number from release artifact names #343

Open flaki opened 2 years ago

flaki commented 2 years ago

I got tired of manually updating subo on Linux and wanted to write a script that pulls & installs the latest release.

Conveniently, GitHub provides a "latest" virtual folder for asset downloads so

wget https://github.com/suborbital/subo/releases/latest/download/subo-v0.5.4-linux-amd64.tar.gz

...will work. Until we publish a new release, as v0.5.5 won't have a file subo-v0.5.4-linux-amd64.tar.gz in it.

Could we remove the version number from the published release artifact names and just use the target?

Note: there is a two-step way to do this using the GitHub API but that would be considerably more complex to accomplish, and by-version artifact references would remain possible through the release path