Skip to content

Commit

Permalink
feat: add version to release binary
Browse files Browse the repository at this point in the history
  • Loading branch information
sevennt committed Sep 6, 2021
1 parent e60dd2a commit f20163c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ builds:
ldflags:
- -s -w -X {{.ModulePath}}/cmd/version.buildVersion={{.Version}} -X {{.ModulePath}}/cmd/version.buildGitVersion={{.Version}} -X {{.ModulePath}}/cmd/version.buildTag={{.Tag}} -X {{.ModulePath}}/cmd/version.buildStatus=Clean -X {{.ModulePath}}/cmd/version.buildUser=goreleaser -X {{.ModulePath}}/cmd/version.buildHost=goreleaser -X {{.ModulePath}}/cmd/version.buildTime={{.Date}}
archives:
- replacements:
- name_template: "egoctl-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ github.com/gotomicro/ego v0.3.10 h1:Ekqykbb7ReNwlx6xQJ9cBc4HS85DJ2Tnp1U+ib8A07s=
github.com/gotomicro/ego v0.3.10/go.mod h1:1X86SNjzc9KLZ5BnywlWeka+WRcIkDqWYPIl2N9SyTU=
github.com/gotomicro/gotoant v0.0.0-20210105085109-df5f1354ac30 h1:Nb34vkIlbT1jf9m2szQcf2t5OntsRQJOVtm8NGDPUGY=
github.com/gotomicro/gotoant v0.0.0-20210105085109-df5f1354ac30/go.mod h1:04oGQHEWUh4gpo16GSr0ZOAT/2JBFCd4wIMW/N2jtRM=
github.com/gotomicro/prototool v1.10.1-0.20210830033604-a6fb9b76bf16 h1:GqrmC4Rm8yOnSWL7HqaEa3ElMmwFK58Be6peI8OyTfU=
github.com/gotomicro/prototool v1.10.1-0.20210830033604-a6fb9b76bf16/go.mod h1:Gm3Hk3q1miWlLtabVvNtCC4DpERhX7Pc5YnOcTq4RCs=
github.com/gotomicro/prototool v1.10.1-0.20210830042344-7ff76cec90a9 h1:XUU5sG4vmHhF3hhOJ5MgN7Bbibt1UmHwtq6m856XsRY=
github.com/gotomicro/prototool v1.10.1-0.20210830042344-7ff76cec90a9/go.mod h1:Gm3Hk3q1miWlLtabVvNtCC4DpERhX7Pc5YnOcTq4RCs=
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
Expand Down

0 comments on commit f20163c

Please sign in to comment.