diff options
-rwxr-xr-x | containers/go-fmt/go-fmt.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/containers/go-fmt/go-fmt.sh b/containers/go-fmt/go-fmt.sh index daa372c..1895efd 100755 --- a/containers/go-fmt/go-fmt.sh +++ b/containers/go-fmt/go-fmt.sh @@ -2,14 +2,16 @@ GOFMT=$(go env GOROOT)/bin/gofmt -find -name '*.go' | xargs $GOFMT -d -e > go-fmt.patch +find -name '*.go' | xargs $GOFMT -w + +git diff > go-fmt.patch if test -s go-fmt.patch then echo echo "❌ ERROR: some files failed go fmt code style check" echo - diffstat go-fmt.patch + git diff --stat echo echo "See the go-fmt patch artifact for full details of mistakes." echo |