Skip to content

Commit

Permalink
feat(build): moving version definition to the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwiora committed Sep 6, 2020
1 parent 239786b commit 99ba11e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- 6
- 7
ldflags: >
-X main.Version={{.Version}}
-X main.VERSION={{.Version}}
-X main.DateBuilt={{.Date}}
archive:
wrap_in_directory: true
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime"
)

var VERSION = "0.3 alpha"
var VERSION = "custom"
var appConfiguration APPconfig

type APPconfig struct {
Expand Down

0 comments on commit 99ba11e

Please sign in to comment.