Commit e1dfb1a4 authored by Matt Butcher's avatar Matt Butcher

fix(validate-go): show the errors gofmt found

Rather than just listing files that have errors, this now shows
the diff of what gofmt things should be the case, and what is
the case.
parent d3975520
...@@ -48,6 +48,7 @@ if [[ -n "${failed_fmt}" ]]; then ...@@ -48,6 +48,7 @@ if [[ -n "${failed_fmt}" ]]; then
echo "${red}" echo "${red}"
echo "gofmt check failed:" echo "gofmt check failed:"
echo "$failed_fmt" echo "$failed_fmt"
find_go_files | xargs gofmt -s -d
echo "${reset}" echo "${reset}"
exit_code=1 exit_code=1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment