Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't automate download of latest release #316

Closed
EthraZa opened this issue Jul 25, 2020 · 1 comment
Closed

Can't automate download of latest release #316

EthraZa opened this issue Jul 25, 2020 · 1 comment

Comments

@EthraZa
Copy link

EthraZa commented Jul 25, 2020

Hi.
Since the releases have a version number in the file name, I can't automatically download the latest release. Please consider remove the version number from the file names.
And, since minify is Go and distributed as a single file, if possible, please consider add to the download section, a version of the binary without tgz.

Example:
To download today, the link is:
https://github.com/tdewolff/minify/releases/latest/download/minify_2.7.7_linux_amd64.tar.gz

To be able to download without knowing the version in advance, it could be like:
https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64.tar.gz

To be able to download without knowing the version in advance and without the need to untar, it could be like:
https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64

GitHub Docs:
Linking to releases

Motivation:
It would be nice to be able to always download and install the latest version of this wonderful tool to my Flatcar Linux (CoreOS) using the ignition setup as in:

files:
    - path: /opt/bin/minify
          filesystem: root
          mode: 0755
          contents:
            remote:
              url: https://github.com/tdewolff/minify/releases/latest/download/minify_linux_amd64

Ignition just allow me to download the file to a path and use it as is or gunzip using the flag "compression: gzip", no untar provided.
I could create a script to untar it at first boot, but I would still need to be able to download without knowing the version number to get the latest and greatest.

Thank you.

@tdewolff
Copy link
Owner

Thanks for the issue. I took the opportunity to fix the pipeline of releasing. The releases will not contain the version information in their names now, however the tar is required because we're compressing multiple files (the binary, license file, readme file and bash completion script).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants