Skip to content

Commit c8c8d7e

Browse files
committed
build: try setting -ldflags=-buildid in .goreleaser.yaml
1 parent 3996948 commit c8c8d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.goreleaser.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ builds:
2121
flags:
2222
- -trimpath
2323
ldflags:
24-
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
24+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -buildid={{ .Commit }}
2525

2626
gomod:
2727
proxy: true

0 commit comments

Comments
 (0)