mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-25 19:15: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"
|
print "Running go vet"
|
||||||
go vet -tags pkcs11 ./...
|
go vet -tags pkcs11 ./...
|
||||||
print "Running gofmt"
|
print "Running gofmt"
|
||||||
output=$(gofmt -l -s $(go list -f '{{.Dir}}' ./...))
|
output=$(gofmt -l -s $(go list -tags pkcs11 -f '{{.Dir}}' ./...))
|
||||||
if [[ "${output}" != "" ]]; then
|
if [[ "${output}" != "" ]]; then
|
||||||
print "The following files contain formatting errors, please run 'gofmt -l -w <path>' to fix these issues:"
|
print "The following files contain formatting errors, please run 'gofmt -l -w <path>' to fix these issues:"
|
||||||
echo "${output}"
|
echo "${output}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print "Running goimports"
|
print "Running goimports"
|
||||||
output=$(goimports -l $(go list -f '{{.Dir}}' ./...))
|
output=$(goimports -l $(go list -tags pkcs11 -f '{{.Dir}}' ./...))
|
||||||
if [[ "${output}" != "" ]]; then
|
if [[ "${output}" != "" ]]; then
|
||||||
print "The following files contain import errors, please run 'goimports -l -w <path>' to fix these issues:"
|
print "The following files contain import errors, please run 'goimports -l -w <path>' to fix these issues:"
|
||||||
echo "${output}"
|
echo "${output}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue