Skip to content

Commit

Permalink
Merge pull request #60 from utilitywarehouse/goreleaser-main-version
Browse files Browse the repository at this point in the history
Use goreleaser ldflags for version
  • Loading branch information
ribbybibby authored Sep 2, 2020
2 parents d001806 + d21c792 commit 300dbe5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"time"
)

const (
version = "v0.1.0-dev"
)

var (
version = "dev"
commit = "none"
date = "unknown"
builtBy = "unknown"
flagAgent = flag.Bool("agent", false, "Run application in \"agent\" mode")
flagConfig = flag.String("config", "/etc/wiresteward/config.json", "Config file")
flagLogLevel = flag.String("log-level", "info", "Log Level (debug|info|error)")
Expand All @@ -31,7 +31,7 @@ func main() {
logger = newLogger("wiresteward")

if *flagVersion {
logger.Info.Println(version)
logger.Info.Printf("version=%s commit=%s date=%s builtBy=%s", version, commit, date, builtBy)
return
}

Expand Down

0 comments on commit 300dbe5

Please sign in to comment.