-
When a not-too-often run CI/CD goreleaser stage "suddenly" failed I looked into my previously working I'm using goreleaser 2.6.1, but also tried with 2.5.1 with the same effects. OS is Linux, distro is Ubuntu 24.04.1LTS, go is 1.23.5. That's what my version: 2
project_name: xxx
dist: ./dist
builds:
- id: default
main: ./cmd/xxx
binary: xxx
targets:
- linux_amd64_v1
- linux_arm64
tags:
- netgo
- osusergo
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
env:
- CGO_ENABLED=1
overrides:
- goos: linux
goarch: arm64
goarm: "v8.0" # not strictly necessary anymore, thanks for the bug fix months ago!
env:
- CC=aarch64-linux-gnu-gcc Please notice the arm64-specific CC env var override. Now (please scroll to the right in order to not miss the override debug output stating that CC is now set for arm64):
Changing the When unrolling the builds as follows, the build for arm64 now succeeds.
What stupid mistake did I manage to put into my goreleaser configuration -- bonus: and why did my pipeline previously succeeded a few weeks ago on golang:1.23.4? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems like this is the same bug fixed in #5492 Will release the fix soon-ish. |
Beta Was this translation helpful? Give feedback.
Seems like this is the same bug fixed in #5492
Will release the fix soon-ish.