1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 00:48:45 +01:00
Files
installer/hack
W. Trevor King 87b3e170f8 hack/go-fmt: Make it easy to auto-format Go
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
2018-08-24 14:30:24 -07:00
..
2018-08-15 12:03:32 -05:00
2018-08-06 09:16:43 -05:00
2018-08-08 16:06:49 -04:00
2018-08-03 18:48:10 -05:00