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

Apply renaming logic for files extracted from tarball #109

Open
tarasglek opened this issue Aug 29, 2024 · 0 comments
Open

Apply renaming logic for files extracted from tarball #109

tarasglek opened this issue Aug 29, 2024 · 0 comments

Comments

@tarasglek
Copy link

tarasglek commented Aug 29, 2024

If I get yq via tarball, it results in wrong filename :(

eget mikefarah/yq -a tar.gz

2 candidates for target exe `yq` found: please select manually
(1) ./yq_linux_arm64
(2) install-man-page.sh
(3) all
eget mikefarah/yq -a tar.gz -f yq_linux_arm64
https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_arm64.tar.gz
Downloading 100% [==============================================================================================] (3.6/3.6 MB, 8.757 MB/s)        
Extracted `./yq_linux_arm64` to `yq_linux_arm64`

Whereas if you grab the binary, it does right thing(tm)

eget mikefarah/yq -a ^tar.gz
https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_arm64
Downloading 100% [==============================================================================================] (9.3/9.3 MB, 9.547 MB/s)        
Extracted `yq_linux_arm64` to `yq`
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