mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 08:17:04 +00:00
Makefile: let gofmt-verify write changes back to files
Let gofmt write the result (suggested changes) back to the source files, instead of just printing out the diff. Reduces manual work.
This commit is contained in:
parent
bf8a1a217a
commit
5c0d98e07a
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