BUILD: CGO linking problems break Debian and Centos 7 (#2141)

This commit is contained in:
Tom Limoncelli 2023-03-13 09:54:02 -04:00 committed by GitHub
parent 26cf0fd15b
commit f19225f8d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ builds:
- darwin
- freebsd
ldflags:
- -s -w -X main.Version="{{ .Version }}" -X main.SHA="{{ .FullCommit }}" -X main.BuildTime={{ .Timestamp }}
- -linkmode=internal -s -w -X main.Version="{{ .Version }}" -X main.SHA="{{ .FullCommit }}" -X main.BuildTime={{ .Timestamp }}
before:
hooks:
- go mod tidy