Go 1.12 dropped "go tool vet", use "go vet" instead

Also add Go 1.12 to Travis.
This commit is contained in:
Jakob Unterwurzacher 2019-03-02 14:39:03 +01:00
parent 173218895c
commit ddcc1fb3aa
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ go:
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- stable
before_install:

View File

@ -48,7 +48,7 @@ if ! go tool | grep vet > /dev/null ; then
elif [[ -d vendor ]] ; then
echo "vendor directory exists, skipping 'go tool vet'"
else
go tool vet -all -shadow .
go vet .
fi
# We don't want all the subprocesses