diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 22:48:37 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 22:48:37 +1000 |
commit | 778cb14dc48d24764b86d2a7e9ac3a7ddb4121a6 (patch) | |
tree | 2d287b534d7f0383580b69584a5e1fe8a4dbbd77 /main.go | |
parent | 00c679a3f04df5378d46fb57b9abbdd374c93680 (diff) |
update to use goreleaser ldflags
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -20,13 +20,10 @@ var ( subprocess *exec.Cmd startTime time.Time - // Rev - Git Revision - Rev string + commit string + version = "unversioned" - // Version - Version number - Version = "unversioned" - - builddate string + date string debuggingFlag = flag.Bool("debug", false, "a boolean") versionFlag = flag.Bool("v", false, "Print the current version") ) @@ -77,7 +74,7 @@ func main() { devLog("\n\n\n\n\n\n\n\n\n\n") flag.Parse() if *versionFlag { - fmt.Printf("rev=%s, build date=%s, version=%s", Rev, builddate, Version) + fmt.Printf("rev=%s, build date=%s, version=%s", Rev, date, Version) os.Exit(0) } verifyInGitRepo() |