Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ before:
builds:
- main: ./cmd/onecli
binary: onecli
env:
# Without this, the native (linux) build links against the release
# runner's glibc and the published binary refuses to start on any
# distro with an older one. The source imports no cgo, so disabling
# it costs nothing and makes every artifact statically linked.
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.version={{.Version}}
Expand Down