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

Generic artifact names in release archives #327

Open
1 task
den-is opened this issue Apr 15, 2024 · 0 comments
Open
1 task

Generic artifact names in release archives #327

den-is opened this issue Apr 15, 2024 · 0 comments

Comments

@den-is
Copy link

den-is commented Apr 15, 2024

Feature Request

  • I'd be willing to implement this feature

Describe the idea
TLDR: Remove versions from directories and binaries in archives.
Can you please make artifact names in archives a little bit more generic, as 99.99% of software out there does it ?
It will make the deployment and update processes much easier, with fewer steps and lines in scripts.

Why is this helpful?
Current tarball structure:

tar tvf terragrunt-atlantis-config_1.17.4_linux_amd64.tar.gz
-rwxr-xr-x  0 0      0    45876125 Jan 30 01:58 terragrunt-atlantis-config_1.17.4_linux_amd64/terragrunt-atlantis-config_1.17.4_linux_amd64
-rw-r--r--  0 0      0       17722 Jan 30 01:57 terragrunt-atlantis-config_1.17.4_linux_amd64/README.md

Better approach:

tar tvf terragrunt-atlantis-config_1.17.4_linux_amd64.tar.gz
-rwxr-xr-x  0 0      0    45876125 Jan 30 01:58 terragrunt-atlantis-config/terragrunt-atlantis-config
-rw-r--r--  0 0      0       17722 Jan 30 01:57 terragrunt-atlantis-config/README.md

One of the ways to extract archive nowadays

export TAC_V=1.17.4
curl -sL https://github.com/transcend-io/terragrunt-atlantis-config/releases/download/v$TAC_V/terragrunt-atlantis-config_$TAC_V_linux_amd64.tar.gz -o /tmp/terragrunt-atlantis-config.tar.gz
mkdir -p /tmp/terragrunt-atlantis-config
cd /tmp/terragrunt-atlantis-config
tar xzf /tmp/terragrunt-atlantis-config.tar.gz --strip-components=1
mv terragrunt-atlantis-config_$TAC_V_linux_amd64 /usr/local/bin/terragrunt-atlantis-config
rm -rf /tmp/terragrunt-atlantis-config*

# again, there are a dozen other methods to write this script
# the main issue is that binary name has version_platform info in it
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

1 participant