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

Add support for aarch64-unknown-linux-gnu #30

Open
tsingksan opened this issue Dec 20, 2024 · 1 comment
Open

Add support for aarch64-unknown-linux-gnu #30

tsingksan opened this issue Dec 20, 2024 · 1 comment

Comments

@tsingksan
Copy link

tsingksan commented Dec 20, 2024

Issue: Add support for aarch64-unknown-linux-gnu

Environment

  • Host System: macOS M3
  • VM System: NixOS
  • Loading Method: Using zinit to load pnpm-shell-completion

Configuration:

zinit wait'1b' lucid for \
        id-as"pnpm-shell-completion" \
        nocompile"#!/*" \
        atload"zpcdreplay" \
        atclone"./zplug.zsh" \
        atpull"%atclone" \
    g-plane/pnpm-shell-completion \

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 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
@tsingksan tsingksan changed the title exec format error Add support for aarch64-unknown-linux-gnu Dec 21, 2024
@g-plane
Copy link
Owner

g-plane commented Dec 23, 2024

GitHub Actions doesn't provide ARM Linux at the moment.

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

2 participants