mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
pkcs11 tag added to lint script
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
This commit is contained in:
parent
f57a5e9dd9
commit
db152a9d5b
1 changed files with 2 additions and 2 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue