Skip to content
This repository was archived by the owner on Apr 10, 2019. It is now read-only.

Commit 46cc1ea

Browse files
committed
Fix --version and bump to 2.0.5
1 parent 84b9d26 commit 46cc1ea

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ release:
88

99
brew:
1010
skip_upload: true
11-
description: Concurrently run Go lint tools and normalise their output Edit
11+
description: Concurrently run Go lint tools and normalise their output.
1212

1313
builds:
1414
- binary: gometalinter

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ go:
99
- 1.9.x
1010
script: go test -v . ./regressiontests
1111
before_deploy:
12-
- go get github.com/goreleaser/goreleaser
13-
- goreleaser
12+
- curl -sL https://git.io/goreleaser | bash
1413
deploy:
1514
provider: releases
1615
api_key:

main.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ var (
2424
{"gopkg.in", "alecthomas", "gometalinter.v2", "_linters"},
2525
}
2626
defaultConfigPath = ".gometalinter.json"
27-
Version = "master"
27+
28+
// Populated by goreleaser.
29+
version = "master"
30+
commit = "?"
31+
date = ""
2832
)
2933

3034
func setupFlags(app *kingpin.Application) {
@@ -177,7 +181,7 @@ func formatSeverity() string {
177181
}
178182

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

0 commit comments

Comments
 (0)