You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pnpm-shell-completion works fine on the macOS host system. However, when attempting to use it on the NixOS virtual machine, the following error occurs:
_pnpm:17: exec format error: /pnpm-shell-completion/pnpm-shell-completion
This might be caused by downloading the incorrect target file when running ./zplug.zsh. I have tried downloading different release targets, but the issue persists.
I attempted to build with cargo build targeting aarch64-unknown-linux-gnu locally, and the issue was resolved.
Suggested Solution
I would like to request adding support for aarch64-unknown-linux-gnu in pnpm-shell-completion. Here is my suggested modification:
# zplug.zsh
if [ $(uname) = "Darwin" ]; then
if [ $(uname -m) = "arm64" ]; then
target="aarch64-apple-darwin"
else
target="x86_64-apple-darwin"
fi
else
if [ $(uname -m) = "aarch64" ]; then
target="aarch64-unknown-linux-gnu"
else
target="x86_64-unknown-linux-musl"
fi
fi
The text was updated successfully, but these errors were encountered:
tsingksan
changed the title
exec format error
Add support for aarch64-unknown-linux-gnu
Dec 21, 2024
Issue: Add support for
aarch64-unknown-linux-gnu
Environment
zinit
to loadpnpm-shell-completion
Configuration:
Issue Description
pnpm-shell-completion
works fine on the macOS host system. However, when attempting to use it on the NixOS virtual machine, the following error occurs:_pnpm:17: exec format error: /pnpm-shell-completion/pnpm-shell-completion
This might be caused by downloading the incorrect target file when running
./zplug.zsh
. I have tried downloading different release targets, but the issue persists.I attempted to build with
cargo build
targetingaarch64-unknown-linux-gnu
locally, and the issue was resolved.Suggested Solution
I would like to request adding support for
aarch64-unknown-linux-gnu
inpnpm-shell-completion
. Here is my suggested modification:The text was updated successfully, but these errors were encountered: