21227: Fail tests on 'go vet' problems.
authorTom Clegg <tom@curii.com>
Fri, 1 Dec 2023 20:44:31 +0000 (15:44 -0500)
committerTom Clegg <tom@curii.com>
Fri, 1 Dec 2023 20:44:31 +0000 (15:44 -0500)
...except "literal uses unkeyed fields", of which there are currently
many instances, mostly in tests.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

build/run-tests.sh

index 83688e8727690d161a25e644a019dbe061d9b152..70437bd21cdff07da8f279a3999b8f58bb0fb3ac 100755 (executable)
@@ -1000,6 +1000,7 @@ test_gofmt() {
     cd "$WORKSPACE" || return 1
     dirs=$(ls -d */ | egrep -v 'vendor|tmp')
     [[ -z "$(gofmt -e -d $dirs | tee -a /dev/stderr)" ]]
+    go vet -composites=false ./...
 }
 
 test_services/api() {