.goreleaser.yml: Inject the version into the built binary

This commit is contained in:
Michael Aldridge 2026-11-01 18:57:37 -06:00
parent efb4904910
commit bdc0d85b53

View file

@ -3,7 +3,9 @@ before:
- go mod vendor - go mod vendor
- scripts/prepare.sh - scripts/prepare.sh
builds: builds:
- goos: - ldflags:
- -s -w -X github.com/netauth/ldap/internal/buildinfo.Version={{.Version}}
goos:
- darwin - darwin
- freebsd - freebsd
- linux - linux