-
Notifications
You must be signed in to change notification settings - Fork 129
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
[bug]: Wrong binary is downloaded on a mac for eza-community/eza instead of erroring #575
Comments
And I wrote this exact issue report already a few month back: #295 -> closing this one... |
I think this would be useful. |
Just FYI: still running into this... λ uname
Darwin
λ exec zsh
==> Downloading eza-community/eza
==> Requesting eza.exe_x86_64-pc-windows-gnu.tar.gz
################### 100.0%
[ziextract] Unpacking the files from: `eza.exe_x86_64-pc-windows-gnu.tar.gz'…
[ziextract] Successfully extracted and assigned +x chmod to the file: eza.exe.
Error: linkbin: lbin ice (**/eza) did not match any files |
Another package: no mac binary in the github release, so it ends up with linux :-( λ exec zsh
==> Downloading aristocratos/btop
==> Requesting btop-x86_64-linux-musl.tbz
#################### 100.0%
[ziextract] Unpacking the files from: `btop-x86_64-linux-musl.tbz'…
[ziextract] Successfully extracted and marked 4 executable the appropriate files (btop, install.sh, setuid.sh, uninstall.sh) contained in `btop-x86_64-linux-musl.tbz'.
==> linkbin: Created btop soft link & set +x on the btop binary
λ uname -o
Darwin |
zinit tests hit the issue relatively often where the projects latest release assets lack a os/arch until the maintainer completes building them which can take days/weeks or maybe support changes, etc. so, does zinit try older releases if no ver ice is specified or fail outright? because btop has a macos build in previous release. |
Personally I would like it to fail. #295 has an idea how to make this more reliable (first removing "known not working" downloads and then apply the heuristic to the leftover downloads) |
What happened?
The ghr for eza-community/eza installs a windows binary on my (intel) mac.
https://github.com/eza-community/eza/releases/tag/v0.11.0 contains:
aarch64-unknown-linux-gnu-eza
x86_64-pc-windows-gnu-eza.exe
x86_64-unknown-linux-gnu-eza
So the real problem is that it wrongly tries to download something instead of erroring out as there is no relevant item to download :-(
(I also opened a upstream feature request to provide mac binaries, but I guess this part is still a zinit bug)
Steps to reproduce
.zshrc:
Relevant output
Operating System & Version
OS: darwin21.3.0 | Vendor: apple | Machine: x86_64 | CPU: x86_64 | Processor: i386 | Hardware: x86_64
Zsh version
zsh 5.9 (x86_64-apple-darwin21.3.0)
Terminal emulator
xterm-256color (wezterm)
Code of Conduct
The text was updated successfully, but these errors were encountered: