From 5c0d98e07a9fdd88595e039ed125a654eefbf6e6 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 22 Oct 2021 12:03:24 +0300 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0d9cb6217..9e47f006e 100644 --- a/Makefile +++ b/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; \