Add `gofmt` Makefile target

This commit is contained in:
Pedro Pombeiro 2019-12-30 11:29:04 +01:00 committed by Pedro Pombeiro
parent cf2d16d186
commit 608de7fa2d
1 changed files with 3 additions and 0 deletions

View File

@ -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)"; \