From d14a724b539571a34821b709b149c376b80d8125 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 20 Sep 2017 15:42:08 +0300 Subject: [PATCH] Remove go version check for make fmt (#2558) (#2561) --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5f1f420eb..855f42c8a 100644 --- a/Makefile +++ b/Makefile @@ -56,11 +56,8 @@ clean: $(GO) clean -i ./... rm -rf $(EXECUTABLE) $(DIST) $(BINDATA) integrations*.test -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 @@ -112,7 +109,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 \