1
0
Fork 0
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:
Markus Lehtonen 2021-10-22 12:03:24 +03:00
parent bf8a1a217a
commit 5c0d98e07a

View file

@ -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; \