Skip to content

Commit

Permalink
Fix --version and bump to 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Feb 16, 2018
1 parent 84b9d26 commit 46cc1ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ release:

brew:
skip_upload: true
description: Concurrently run Go lint tools and normalise their output Edit
description: Concurrently run Go lint tools and normalise their output.

builds:
- binary: gometalinter
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ go:
- 1.9.x
script: go test -v . ./regressiontests
before_deploy:
- go get github.com/goreleaser/goreleaser
- goreleaser
- curl -sL https://git.io/goreleaser | bash
deploy:
provider: releases
api_key:
Expand Down
8 changes: 6 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ var (
{"gopkg.in", "alecthomas", "gometalinter.v2", "_linters"},
}
defaultConfigPath = ".gometalinter.json"
Version = "master"

// Populated by goreleaser.
version = "master"
commit = "?"
date = ""
)

func setupFlags(app *kingpin.Application) {
Expand Down Expand Up @@ -177,7 +181,7 @@ func formatSeverity() string {
}

func main() {
kingpin.Version(Version)
kingpin.Version(fmt.Sprintf("gometalinter version %s built from %s on %s", version, commit, date))
pathsArg := kingpin.Arg("path", "Directories to lint. Defaults to \".\". <path>/... will recurse.").Strings()
app := kingpin.CommandLine
app.Action(loadDefaultConfig)
Expand Down

0 comments on commit 46cc1ea

Please sign in to comment.