Skip to content

travis fails if go fmt makes changes

David Vorick requested to merge fmtfail into master

I have made a small change to accept.go to demonstrate that travis will fail.

make will not fail if the code is not formatted, only make fmt-strict, which means workflow should not be disrupted. Travis runs make fmt-strict before running make to catch the problem.

See the first commit for a demonstration of the build failing. Second commit fixes this so we don't merge failed code. And additional useful change was made so it's not a wasted commit.

Merge request reports