Skip to content

Commit

Permalink
Remove go version check for make fmt (go-gitea#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks authored and andreynering committed Sep 20, 2017
1 parent 80b430d commit 6f380a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ clean:
integrations/indexers-mysql/ integrations/indexers-pgsql integrations/indexers-sqlite \
integrations/mysql.ini integrations/pgsql.ini

required-gofmt-version:
@$(GO) version | grep -q '\(1.7\|1.8\)' || { echo "We require go version 1.7 or 1.8 to format code" >&2 && exit 1; }

.PHONY: fmt
fmt: required-gofmt-version
fmt:
$(GOFMT) -w $(GOFILES)

.PHONY: vet
Expand Down Expand Up @@ -125,7 +122,7 @@ misspell:
misspell -w -i unknwon $(GOFILES)

.PHONY: fmt-check
fmt-check: required-gofmt-version
fmt-check:
# get all go files and run go fmt on them
@diff=$$($(GOFMT) -d $(GOFILES)); \
if [ -n "$$diff" ]; then \
Expand Down

0 comments on commit 6f380a2

Please sign in to comment.