Skip to content

Commit 773c73f

Browse files
authored
build: add gofmt to format make target (#326)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 0961bd1 commit 773c73f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ install: build
2424

2525
uninstall:
2626
rm -f $(HOME)/.local/bin/$(BINARIES)
27+
2728
mod-tidy:
2829
# Needed to fetch new dependencies and add them to go.mod
2930
go mod tidy
3031

3132
clean:
3233
rm -f $(BINARIES)
3334

34-
format:
35+
format: mod-tidy
3536
go fmt ./...
37+
gofmt -s -w $(GO_FILES)
3638

3739
golines:
3840
golines -w --ignore-generated --chain-split-dots --max-len=80 --reformat-tags .

0 commit comments

Comments
 (0)