1b64eb52 | #!/bin/bash |
614bf6cc | source "$(dirname "${BASH_SOURCE}")/lib/init.sh" |
e3bb13a1 | |
f23f2bf0 | os::golang::verify_go_version |
e3bb13a1 | bad_files=$(find_files | xargs gofmt -s -l) if [[ -n "${bad_files}" ]]; then |
f23f2bf0 | echo "!!! gofmt needs to be run on the following files: " >&2 echo "${bad_files}" echo "Try running 'gofmt -s -d [path]'" >&2 echo "Or autocorrect with 'hack/verify-gofmt.sh | xargs -n 1 gofmt -s -w'" >&2 exit 1 |
1b64eb52 | fi |