Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
add ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jul 21, 2019
1 parent a37832a commit f1ea2cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ builds:
- linux
- darwin
- windows
ldflags:
- -s -w -X main.Version={{.Commit}}
archive:
name_template: "{{ .ProjectName }}_{{.Tag}}_{{ .Os }}_{{ .Arch }}"
replacements:
Expand Down

0 comments on commit f1ea2cd

Please sign in to comment.