Skip to content

Commit 54e76af

Browse files
authored
Merge pull request cri-o#1281 from wking/gofmt-show-diff
Makefile: Use 'git diff' to show gofmt changes
2 parents 4fee97a + 8dbc2d1 commit 54e76af

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ lint: .gopathok
6464
@./.tool/lint
6565

6666
gofmt:
67-
@./hack/verify-gofmt.sh
67+
find . -name '*.go' ! -path './vendor/*' -exec gofmt -s -w {} \+
68+
git diff --exit-code
6869

6970
conmon:
7071
$(MAKE) -C $@

hack/verify-gofmt.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)