From 892635a93d97ab3605a51dba8e93d652b2b799b1 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 6 Nov 2018 15:18:24 +0100 Subject: [PATCH] make: run goimports during make fmt --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b37be265..bdbffa15 100644 --- a/Makefile +++ b/Makefile @@ -232,7 +232,9 @@ fuzz-run: $(GOFUZZ_BIN) # UTILITIES # ========= -fmt: +fmt: goimports + @$(call print, "Fixing imports.") + goimports -w $(GOFILES_NOVENDOR) @$(call print, "Formatting source.") gofmt -l -w -s $(GOFILES_NOVENDOR)