Browse Source

Run vet when building

Jakob Borg 11 years ago
parent
commit
b3d19bd5cc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      build.sh

+ 2 - 0
build.sh

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