Run vet when building

This commit is contained in:
Jakob Borg 2014-05-02 21:59:36 +02:00
parent 647165ab89
commit b3d19bd5cc

View File

@ -11,6 +11,8 @@ host=${host%%.*}
ldflags="-w -X main.Version $version -X main.BuildStamp $date -X main.BuildUser $user -X main.BuildHost $host" ldflags="-w -X main.Version $version -X main.BuildStamp $date -X main.BuildUser $user -X main.BuildHost $host"
build() { build() {
go vet ./... || exit 1
if command -v godep >/dev/null ; then if command -v godep >/dev/null ; then
godep=godep godep=godep
else else