summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-09-20 14:58:29 +0300
committerAndrey Nering <andrey.nering@gmail.com>2017-09-20 08:58:29 -0300
commit6f380a22a400911a241499ba9fbfca914bbae248 (patch)
tree471675d93e6739641de4cb7269d0d7d259abf107 /Makefile
parent80b430d7c07a48f4b3e3c96b821105c8e4789c69 (diff)
downloadgitea-6f380a22a400911a241499ba9fbfca914bbae248.tar.gz
gitea-6f380a22a400911a241499ba9fbfca914bbae248.zip
Remove go version check for make fmt (#2558)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f18dda8589..32b48c6605 100644
--- 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 \