]> source.dussan.org Git - gitea.git/commitdiff
Remove go version check for make fmt (#2558)
authorLauris BH <lauris@nix.lv>
Wed, 20 Sep 2017 11:58:29 +0000 (14:58 +0300)
committerAndrey Nering <andrey.nering@gmail.com>
Wed, 20 Sep 2017 11:58:29 +0000 (08:58 -0300)
Makefile

index f18dda8589f24dcb2e1aa2d5477f56f247fa3623..32b48c6605fd1a9345f84cbdbcc3d1940af0af1d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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
@@ -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 \