mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-28 02:37:11 +00:00
Merge pull request #632 from marquiz/devel/gofmt
Makefile: let gofmt-verify write changes back to files
This commit is contained in:
commit
83f69e3f92
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -107,7 +107,7 @@ gofmt:
|
|||
@$(GO_FMT) -w -l $$(find . -name '*.go')
|
||||
|
||||
gofmt-verify:
|
||||
@out=`$(GO_FMT) -l -d $$(find . -name '*.go')`; \
|
||||
@out=`$(GO_FMT) -w -l -d $$(find . -name '*.go')`; \
|
||||
if [ -n "$$out" ]; then \
|
||||
echo "$$out"; \
|
||||
exit 1; \
|
||||
|
|
Loading…
Add table
Reference in a new issue