make: run goimports during make fmt

This commit is contained in:
Johan T. Halseth 2018-11-06 15:18:24 +01:00
parent 6dfefe39ce
commit 892635a93d
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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)