Skip to content

Commit

Permalink
go-kosu: use ldflags to pass version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Chain committed Oct 17, 2019
1 parent 64247b3 commit 404c084
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/go-kosu/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@ builds:
- id: kosud
binary: kosud
main: ./cmd/kosud/main.go
ldflags: &ldflags
- -s -w -X github.com/ParadigmFoundation/kosu-monorepo/packages/go-kosu/version.Version={{.Version}}
- -X github.com/ParadigmFoundation/kosu-monorepo/packages/go-kosu/version.GitCommit={{.ShortCommit}}

goos:
- linux
goarch:
@@ -12,6 +16,7 @@ builds:
- id: kosu-cli
binary: kosu-cli
main: ./cmd/kosu-cli/main.go
ldflags: *ldflags
goos:
- linux
goarch:

0 comments on commit 404c084

Please sign in to comment.