pkcs11 tag added to lint script

Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
This commit is contained in:
sapthasurendran 2022-07-07 17:44:20 +05:30
parent f57a5e9dd9
commit db152a9d5b

View file

@ -19,14 +19,14 @@ for dir in $dirs; do
print "Running go vet"
go vet -tags pkcs11 ./...
print "Running gofmt"
output=$(gofmt -l -s $(go list -f '{{.Dir}}' ./...))
output=$(gofmt -l -s $(go list -tags pkcs11 -f '{{.Dir}}' ./...))
if [[ "${output}" != "" ]]; then
print "The following files contain formatting errors, please run 'gofmt -l -w <path>' to fix these issues:"
echo "${output}"
fi
print "Running goimports"
output=$(goimports -l $(go list -f '{{.Dir}}' ./...))
output=$(goimports -l $(go list -tags pkcs11 -f '{{.Dir}}' ./...))
if [[ "${output}" != "" ]]; then
print "The following files contain import errors, please run 'goimports -l -w <path>' to fix these issues:"
echo "${output}"