Skip to content

Commit d14a724

Browse files
lafrikslunny
authored andcommitted
Remove go version check for make fmt (#2558) (#2561)
1 parent 91788e0 commit d14a724

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ clean:
5656
$(GO) clean -i ./...
5757
rm -rf $(EXECUTABLE) $(DIST) $(BINDATA) integrations*.test
5858

59-
required-gofmt-version:
60-
@$(GO) version | grep -q '\(1.7\|1.8\)' || { echo "We require go version 1.7 or 1.8 to format code" >&2 && exit 1; }
61-
6259
.PHONY: fmt
63-
fmt: required-gofmt-version
60+
fmt:
6461
$(GOFMT) -w $(GOFILES)
6562

6663
.PHONY: vet
@@ -112,7 +109,7 @@ misspell:
112109
misspell -w -i unknwon $(GOFILES)
113110

114111
.PHONY: fmt-check
115-
fmt-check: required-gofmt-version
112+
fmt-check:
116113
# get all go files and run go fmt on them
117114
@diff=$$($(GOFMT) -d $(GOFILES)); \
118115
if [ -n "$$diff" ]; then \

0 commit comments

Comments
 (0)