Skip to content

Commit

Permalink
.travis.yml: use go vet instead of go tool vet
Browse files Browse the repository at this point in the history
As of Go 1.12, go tool vet is no longer supported.¹
Start using the go vet command instead.

Use RCS format for gofmt diff. It results in cleaner,
easier to read gofmt diffs.

¹ https://golang.org/doc/go1.12#vet
  • Loading branch information
dmitshur committed Nov 26, 2019
1 parent 6ff915f commit 246eb5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ install:
- # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- diff -n <(echo -n) <(gofmt -d -s .)
- go vet ./...
- go test -v -race ./...

0 comments on commit 246eb5a

Please sign in to comment.