Browse Source

Silence go vet composites warning

https://code.google.com/p/go/issues/detail?id=6820
Jakob Borg 10 years ago
parent
commit
b44e87c6e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build.sh

+ 1 - 1
build.sh

@@ -118,7 +118,7 @@ case "${1:-default}" in
 			-e "STTRACE=$STTRACE" \
 			syncthing/build:latest \
 			sh -c './build.sh clean \
-				&& go vet ./cmd/... ./internal/... \
+				&& go tool vet -composites=false cmd/*/*.go internal/*/*.go \
 				&& ( golint ./cmd/... ; golint ./internal/... ) | egrep -v "comment on exported|should have comment" \
 				&& ./build.sh all \
 				&& STTRACE=all ./build.sh test-cov'