-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
Description
Describe the bug
The GitHub CLI doesn't work on Alpine Linux.
Steps to reproduce the behavior
docker run --rm -it alpineapk add curlcurl -fsSL 'https://github.com/cli/cli/releases/download/v1.3.1/gh_1.3.1_linux_amd64.tar.gz' | tar -C /usr/local --strip-components=1 -xz/bin/sh: /usr/local/bin/gh: not found
file /usr/local/bin/gh
/usr/local/bin/gh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=fHoTSnnFVd8_yvfygXJN/whl8jqmcJwgrVZga1VFz/1O5vTCOdUnMNVQGvoQWV/v_1Dyi7uTOxQtchpd1Ks, stripped
Expected vs actual behavior
Go binaries should work on all Linux platforms when compiled statically.
I assume you're just missing the CGO_ENABLED=0 environment variable when building.
Reactions are currently unavailable