-
Trying to fix golang/go#68678 for my build I have something like this in the goreleaser config (shortened version): builds:
- id: evcc
main: .
flags:
- -trimpath
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/server.Version={{ .Version }} -X github.com/evcc-io/evcc/vehicle/tesla.TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }} -s -w
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- arm64
goarm:
- "6"
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
overrides:
- goos: darwin
ldflags:
- -B gobuildid Verbose build shows:
I see that Final binary does not not work according to evcc-io/evcc#17251, apparently because the buildid is still not applied? |
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
Nov 29, 2024
Replies: 1 comment 1 reply
-
From the docs:
It won't override if only the GOOS is set. You'll need to set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
caarlos0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the docs:
It won't override if only the GOOS is set. You'll need to set
goarch
as well