Skip to content

Commit

Permalink
fix goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Oct 26, 2017
1 parent 082402c commit e05e9f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/datagen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ import (
"gopkg.in/urfave/cli.v1"
)

var build = "dev"
var (
version = "dev"
build = version
)

func main() {
log.SetFlags(0)
Expand Down
2 changes: 1 addition & 1 deletion goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
main: ./cmd/datagen/main.go
main: ./cmd/datagen
binary: datagen
ldflags_template: -s -w -X main.build={{.Version}}
goos:
Expand Down

0 comments on commit e05e9f4

Please sign in to comment.