Fix goarm target format for goreleaser v2
Some checks are pending
CI / ci (push) Waiting to run

This commit is contained in:
Philip Peterson 2026-08-25 14:42:19 -08:00
parent 937b5f52a9
commit 9271578646
2 changed files with 6 additions and 4 deletions

View file

@ -15,9 +15,9 @@ builds:
- darwin_arm64 - darwin_arm64
- linux_386 - linux_386
- linux_amd64 - linux_amd64
- linux_arm_v5 - linux_arm_5
- linux_arm_v6 - linux_arm_6
- linux_arm_v7 - linux_arm_7
- linux_arm64 - linux_arm64
- linux_riscv64 - linux_riscv64
- windows_386 - windows_386

View file

@ -9,7 +9,9 @@ mkdir -p "$(dirname "$output")"
# Build the source folder name based on GOOS, GOARCH and GOARM. # Build the source folder name based on GOOS, GOARCH and GOARM.
source="${GOOS}_${GOARCH}" source="${GOOS}_${GOARCH}"
if [ "$GOARCH" = "arm" ]; then if [ "$GOARCH" = "arm" ]; then
source="${source}_${GOARM}" # GOARM is bare ("5", "6", "7"); the Docker build output uses a "v" prefix
# (e.g. linux_arm_v5), so add it back here to match.
source="${source}_v${GOARM}"
fi fi
# Copy the output to the desired location # Copy the output to the desired location