github.com/snowflakedb/gosnowflake@v1.9.0/ci/build.bat (about) 1 REM Format and Lint Golang driver 2 3 @echo off 4 setlocal EnableDelayedExpansion 5 6 echo [INFO] Download tools 7 where golint 8 IF !ERRORLEVEL! NEQ 0 go install golang.org/x/lint/golint@latest 9 where make2help 10 IF !ERRORLEVEL! NEQ 0 go install github.com/Songmu/make2help/cmd/make2help@latest 11 where staticcheck 12 IF !ERRORLEVEL! NEQ 0 go install honnef.co/go/tools/cmd/staticcheck@v0.4 13 14 echo [INFO] Go mod 15 go mod tidy 16 go mod vendor 17 18 FOR /F "tokens=1" %%a IN ('go list ./...') DO ( 19 echo [INFO] Verifying %%a 20 go vet %%a 21 golint -set_exit_status %%a 22 ) 23