git » chasquid » commit 05e5803

make: Run `go fix` on `make fmt`

author Alberto Bertogli
2026-10-04 17:39:56 UTC
committer Alberto Bertogli
2026-10-04 17:39:56 UTC
parent 5131fdacb4b60c6b211e6ce61fd39222852d2cc2

make: Run `go fix` on `make fmt`

The `fmt` make target does some auto-formatting (gofmt, black) and
vetting (go vet); this patch makes it include go fix too, to help us
keep the codebase updated to modern features and standards.

Makefile +1 -0

diff --git a/Makefile b/Makefile
index 57e0991..f6bfc1e 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,7 @@ install-config-skeleton:
 fmt:
 	go vet ./...
 	gofmt -s -w .
+	go fix ./...
 	clang-format -i $(shell find . -iname '*.proto')
 	black -l 79 \
 		test/util/check-hostaliases \