mirror of
https://github.com/openshift/installer.git
synced 2026-02-06 00:48:45 +01:00
So users and CI tooling can keep our Go clean :). The find call avoids formatting .build/* (Bazel output) and vendor/* (controlled upstream), because gofmt has no special vendor/ handling built in [1]. Formatting our Go and then using 'git diff' to show the changes (and error if there were any) makes it easy for: * CI to see if there were issues (because of the exit code). * Users to see the required changes in the CI logs (because of the output diff). [1]: https://github.com/golang/go/issues/22173#issuecomment-338782431