Skip to content

Commit

Permalink
Add gofmt Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Pombeiro committed Jan 6, 2020
1 parent cf2d16d commit 608de7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"; \
Expand Down

0 comments on commit 608de7f

Please sign in to comment.