go vet by tag

Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
This commit is contained in:
sapthasurendran 2022-07-07 16:45:51 +05:30
parent 1019c9800b
commit f57a5e9dd9

View file

@ -17,7 +17,7 @@ for dir in $dirs; do
pushd $dir
if [[ "$dir" =~ "-go" ]]; then
print "Running go vet"
go vet ./...
go vet -tags pkcs11 ./...
print "Running gofmt"
output=$(gofmt -l -s $(go list -f '{{.Dir}}' ./...))
if [[ "${output}" != "" ]]; then