Skip to content

Commit

Permalink
Make version a variable so goreleaser can set it
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 27, 2018
1 parent b67a98f commit 91036f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.dev.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Releasing

* Update `CHANGELOG.md`
* Update `Version` in `main.go`
2 changes: 1 addition & 1 deletion cmd/geoipupdate/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func getArgs() *Args {
printUsage()
}
if *version {
log.Printf("geoipupdate %s", Version)
log.Printf("geoipupdate %s", version)
os.Exit(0)
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
flock "github.com/theckman/go-flock"
)

// Version is the program's version number.
const Version = "0.0.1"
// version is the program's version number.
var version = "unknown"

func main() {
log.SetFlags(0)
Expand Down

0 comments on commit 91036f1

Please sign in to comment.