Commit 568ca8e
committed
ci-test: Fix syntax/formatting check so it actually emits an exit code
The old format didn't emit any exit codes and thus did not cause CI to
fail:
$ diff -u <(echo -n) <(gofmt -d -s .)
make.go:513:46: missing ',' before newline in composite literal
$ echo $?
0
The old code would have an failure only if `gofmt` ran successfully AND
outputted changes. With the new structure both `gofmt` and `git` needs
to pass, thus capturing exit codes and error of any kind of failures.1 parent 3e594ae commit 568ca8e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments