You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm automating some installations using Ansible, and many current tools are distributed via GitHub releases. I've noticed that some projects use version-agnostic file names for their release artifacts, which greatly simplifies the process of automating downloads.
This code snippet exemplifies an Ansible task where the download URL can be easily constructed due to stable file names:
When file names include the version, it adds complexity to automation scripts, as they need to dynamically determine the latest version before constructing the download URL. This typically involves request a tag into the input variable, and a replace logic.
I would appreciate it if you could evaluate adopting this approach.
Thank you for your time and consideration.
--EDIT:
I also wanted to mention another point related to automation. Having the fzf --version output match the tag format (including the "v" prefix, e.g., v0.50.1, instead of 0.50.1) would further simplify automation scripts that rely on comparing versions. This inconsistency currently requires additional string manipulation. Thank you.
The text was updated successfully, but these errors were encountered:
I understand. However, fzf has been around for more than 10 years by now, and I believe there are many automation scripts out there that follow the current scheme, so we can't afford to suddenly change it and break them.
Since you're using the GitHub API to get the latest release information, you should be able to get the download URLs for the assets from it.
Checklist
man fzf
)Output of
fzf --version
0.57.0 (0476a65)
OS
Shell
Problem / Steps to reproduce
Hi all,
I'm automating some installations using Ansible, and many current tools are distributed via GitHub releases. I've noticed that some projects use version-agnostic file names for their release artifacts, which greatly simplifies the process of automating downloads.
This code snippet exemplifies an Ansible task where the download URL can be easily constructed due to stable file names:
When file names include the version, it adds complexity to automation scripts, as they need to dynamically determine the latest version before constructing the download URL. This typically involves request a tag into the input variable, and a replace logic.
I would appreciate it if you could evaluate adopting this approach.
Thank you for your time and consideration.
--EDIT:
I also wanted to mention another point related to automation. Having the fzf --version output match the tag format (including the "v" prefix, e.g., v0.50.1, instead of 0.50.1) would further simplify automation scripts that rely on comparing versions. This inconsistency currently requires additional string manipulation. Thank you.
The text was updated successfully, but these errors were encountered: