diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index 264ff3e89..5c824e63e 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -48,6 +48,7 @@ if [[ -n "${failed_fmt}" ]]; then echo "${red}" echo "gofmt check failed:" echo "$failed_fmt" + find_go_files | xargs gofmt -s -d echo "${reset}" exit_code=1 fi