From 5235f2cc9d02e1ed15d321b926031b60613a3fa1 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Thu, 19 Dec 2024 19:47:47 -0500 Subject: [PATCH] build: add gofmt to format make target (#254) Signed-off-by: Chris Gianelloni --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5eef6db..afd429a 100644 --- a/Makefile +++ b/Makefile @@ -20,15 +20,16 @@ all: format build # Alias for building program binary build: $(BINARIES) -tidy: +mod-tidy: # Needed to fetch new dependencies and add them to go.mod go mod tidy clean: rm -f $(BINARIES) -format: tidy +format: mod-tidy go fmt ./... + gofmt -s -w $(GO_FILES) golines: golines -w --ignore-generated --chain-split-dots --max-len=80 --reformat-tags .