zinit icon indicating copy to clipboard operation
zinit copied to clipboard

[bug]: Wrong binary is downloaded on a mac for eza-community/eza instead of erroring

Open jankatins opened this issue 10 months ago • 6 comments

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:

zinit light-mode depth"1" for \
  @zdharma-continuum/zinit-annex-binary-symlink \
  @zdharma-continuum/zinit-annex-bin-gem-node \
  @zdharma-continuum/zinit-annex-default-ice \
  @zdharma-continuum/zinit-annex-patch-dl \
  @zdharma-continuum/zinit-annex-readurl
zinit default-ice --quiet as'null' from"gh-r" lbin'!' lucid nocompile completions
zinit lbin'!**/eza' for @eza-community/eza

Relevant output

λ  exec zsh

Downloading eza-community/eza…


(Requesting `x86_64-pc-windows-gnu-eza.exe'…)
########################################################################################################################################################################### 100.0%
[ziextract] Unpacking the files from: `x86_64-pc-windows-gnu-eza.exe'…
chmod: --: No such file or directory
→zinit-extract:2: command not found: cygpath
→zinit-extract:2: exec format error: ./x86_64-pc-windows-gnu-eza.exe
[ziextract] Error: extraction of the archive `x86_64-pc-windows-gnu-eza.exe' had problems.

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

  • [X] I agree to follow this project's Code of Conduct

jankatins avatar Sep 08 '23 15:09 jankatins