File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ verifiers: getdeps fmt lint
28
28
29
29
fmt :
30
30
@echo " Running $@ check"
31
- @GO111MODULE=on gofmt -d restapi/
32
- @GO111MODULE=on gofmt -d pkg/
33
- @GO111MODULE=on gofmt -d cmd/
34
- @GO111MODULE=on gofmt -d cluster/
31
+ @ (env bash $( PWD) /verify-gofmt.sh)
35
32
36
33
crosscompile :
37
34
@ (env bash $( PWD) /cross-compile.sh $( arg1) )
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Expanding gofmt to cover more areas.
4
+ # This will include auto generated files created by Swagger.
5
+ # Catching the difference due to https://github.com/golang/go/issues/46289
6
+ DIFF=$( GO111MODULE=on gofmt -d .)
7
+ if [[ -n $DIFF ]];
8
+ then
9
+ echo " $DIFF " ;
10
+ echo " please run gofmt" ;
11
+ exit 1;
12
+ fi
You can’t perform that action at this time.
0 commit comments