Skip to content

Commit b2108af

Browse files
committed
build: ship linux/arm64 binaries
goreleaser excluded linux/arm64 while building darwin/arm64, so ARM Linux servers, Raspberry Pis, Graviton instances, and ARM CI runners had no prebuilt binary. Nothing blocked it technically: the build is CGO_ENABLED=0 and the image codecs run on wazero, a pure Go WASM runtime, so there is no cgo toolchain to cross-compile. Also drops the linux/arm64 guard added to install.sh earlier today. That asset now exists, and leaving the guard would refuse to install on a supported platform. All five published targets verified to build.
1 parent f4b77f8 commit b2108af

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

.goreleaser.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ builds:
1919
ignore:
2020
- goos: windows
2121
goarch: arm64
22-
- goos: linux
23-
goarch: arm64
2422

2523
archives:
2624
- formats:

install.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,8 @@ detect_platform() {
2929
;;
3030
esac
3131

32-
# goreleaser does not build linux/arm64, so fail with a usable message
33-
# rather than letting the download 404.
34-
if [ "$OS" = "linux" ] && [ "$ARCH" = "arm64" ]; then
35-
echo "Error: no prebuilt binary for linux/arm64." >&2
36-
echo "Install from source instead:" >&2
37-
echo " go install github.com/getsarde/sarde/cmd/sarde@latest" >&2
38-
exit 1
39-
fi
40-
32+
# windows/arm64 is the only combination goreleaser excludes, and this script
33+
# never runs there (the OS check above already rejected it).
4134
echo "${OS}_${ARCH}"
4235
}
4336

0 commit comments

Comments
 (0)