From d4d57c5422d0420c22f7ff55ea60b64a1cd8f1ba Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 6 Sep 2019 12:31:55 -0700 Subject: [PATCH] test: skip govet shadow tests for now Signed-off-by: Gyuho Lee --- test | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test b/test index 6347b1420..656a4604b 100755 --- a/test +++ b/test @@ -460,12 +460,12 @@ function govet_shadow_pass { # shellcheck disable=SC2206 fmtpkgs=($fmtpkgs) # Golang 1.12 onwards the experimental -shadow option is no longer available with go vet - go get golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow + go get -v golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow export PATH=${GOPATH}/bin:${PATH} shadow_tool=$(which shadow) vetRes=$(go vet -all -vettool="${shadow_tool}" "${TEST[@]}") if [ -n "${vetRes}" ]; then - echo -e "govet -all -shadow checking failed:\\n${vetRes}" + echo -e "govet -shadow checking failed:\\n${vetRes}" exit 255 fi } @@ -617,7 +617,6 @@ function fmt_pass { goword \ gofmt \ govet \ - govet_shadow \ revive \ license_header \ receiver_name \