make: run goimports during make fmt

This commit is contained in:
Johan T. Halseth committed 2020-12-18 09:04:44 +01:00
1 parent 6dfefe39ce
commit 892635a93d
1 file changed
+3 -1
+3 -1
View File
@@ -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)