Closed mmedum closed 1 year ago
@mmedum,
Huh, bit surprised arch
is not a command on your system. What OS are you using?
I will open a fix for this in a few hours.
@mmedum,
Huh, bit surprised
arch
is not a command on your system. What OS are you using?I will open a fix for this in a few hours.
Endeavouros Cassini 22.12 with sway, which is "just" wrapping arch linux 🙂
@mmedum Can you try the following?
cd "$ZINIT[BIN_DIR]" \
&& git pull \
&& git checkout fix/update-linux-pattern \
&& zinit delete --yes BurntSushi/ripgrep \
&& exec zsh -l
Here is a simpler recipe using ices lbin'' & lman''.
zi for \
from"gh-r" \
id-as'rg' \
lbin'!' \
lman \
nocompile \
@BurntSushi/ripgrep
Ran in a Ubuntu container (Dockerfile)
zi for \ from"gh-r" \ id-as'rg' \ lbin'!' \ lman \ nocompile \ @BurntSushi/ripgrep
Just tried it directly on my system, it still downloads the wrong binary
~/temp
❯ zi from"gh-r" id-as'rg' lbin'!' lman nocompile for @BurntSushi/ripgrep
Downloading BurntSushi/ripgrep… (at label: rg…)
.zi::get-architecture:3: command not found: arch
(Requesting `ripgrep-13.0.0-arm-unknown-linux-gnueabihf.tar.gz'…)
####################################################################################################################################################################################### 100.0%
[ziextract] Unpacking the files from: `ripgrep-13.0.0-arm-unknown-linux-gnueabihf.tar.gz'…
[ziextract] Successfully extracted and assigned +x chmod to the file: ripgrep-13.0.0-arm-unknown-linux-gnueabihf/rg.
linkman annex: Installed man page: rg.1
[linkbin annex] Created the rg soft link and set +x on the rg binary
Installed 1 completions. They are stored in the $INSTALLED_COMPS array.
At the moment, I solved it by running
zi ice from"gh-r" as"command" bpick"*musl*" mv"ripgrep* -> rg" pick"rg/rg"
zi light BurntSushi/ripgrep
cd "$ZINIT[BIN_DIR]" \ && git pull \ && git checkout fix/update-linux-pattern \ && zinit delete --yes BurntSushi/ripgrep \ && exec zsh -l
This actually ends up with doing the correct thing:
❯ cd "$ZINIT[BIN_DIR]" \
&& git pull \
&& git checkout fix/update-linux-pattern \
&& zinit delete --yes BurntSushi/ripgrep \
&& exec zsh -l
Already up to date.
branch 'fix/update-linux-pattern' set up to track 'origin/fix/update-linux-pattern'.
Switched to a new branch 'fix/update-linux-pattern'
Done (action executed, exit code: 0)
Setting up snippet: https://github.com/ohmyzsh/ohmyzsh/blob/master
Downloading `https://github.com/ohmyzsh/ohmyzsh/blob/master` (with curl, wget, lftp)…
####################################################################################################################################################################################### 100.0%
Note: Compiling: _fd… OK.
Installed 0 completions. They are stored in the $INSTALLED_COMPS array.
Skipped installing 1 completions. They are stored in the $SKIPPED_COMPS array.
Downloading BurntSushi/ripgrep…
(Requesting `ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz'…)
####################################################################################################################################################################################### 100.0%
[ziextract] Unpacking the files from: `ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz'…
[ziextract] Successfully extracted and assigned +x chmod to the file: ripgrep-13.0.0-x86_64-unknown-linux-musl/rg.
renamed 'ripgrep-13.0.0-x86_64-unknown-linux-musl' -> 'rg'
Installed 0 completions. They are stored in the $INSTALLED_COMPS array.
Skipped installing 1 completions. They are stored in the $SKIPPED_COMPS array.
@mmedum Open a new terminal window, it is still using the old version. I know that it is the old version because I removed the arch
call in the PR.
@mmedum Open a new terminal window, it is still using the old version. I know that it is the old version because I removed the
arch
call in the PR.
My mistake :) It seems to work now. Awesome work!
cool, I'm going to merge it.
cool, I'm going to merge it.
Thanks for fixing this!
What happened?
Unsure when this started, but after an update to zinit, I am starting to see
.zi::get-architecture:3: command not found: arch
.When this happened, I started to be unable to install a few program using
zi ice as"command"
such as ripgrep, since instead of downloading[ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz] (https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz)
it now defaults to[ripgrep-13.0.0-arm-unknown-linux-gnueabihf.tar.gz](https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-arm-unknown-linux-gnueabihf.tar.gz)
, this now result in the outputzsh: exec format error: rg
Steps to reproduce
zi ice from"gh-r" as"command" mv"ripgrep/* -> rg" pick"rg/rg" zi light BurntSushi/ripgrep
on a standard linux systemrg
zsh: exec format error: rg
Relevant output