From 608de7fa2d0510e998951983f1eeb4a7d8739513 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Mon, 30 Dec 2019 11:29:04 +0100 Subject: [PATCH] Add `gofmt` Makefile target --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 79c560326..d8832ca1a 100644 --- a/Makefile +++ b/Makefile @@ -176,6 +176,9 @@ prepare-release: clean-release clean-release: rm -rf $(RELEASE_DIR) +gofmt: + find . -name '*.go' -and -not -name 'bindata*' -and -not -name 'migrations.go' -and -not -wholename '*/vendor/*' -exec gofmt -s -w {} \; + check-existing-release: @git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null || exit 0; \ echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \