We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91788e0 commit d14a724Copy full SHA for d14a724
Makefile
@@ -56,11 +56,8 @@ clean:
56
$(GO) clean -i ./...
57
rm -rf $(EXECUTABLE) $(DIST) $(BINDATA) integrations*.test
58
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
-
62
.PHONY: fmt
63
-fmt: required-gofmt-version
+fmt:
64
$(GOFMT) -w $(GOFILES)
65
66
.PHONY: vet
@@ -112,7 +109,7 @@ misspell:
112
109
misspell -w -i unknwon $(GOFILES)
113
110
114
111
.PHONY: fmt-check
115
-fmt-check: required-gofmt-version
+fmt-check:
116
# get all go files and run go fmt on them
117
@diff=$$($(GOFMT) -d $(GOFILES)); \
118
if [ -n "$$diff" ]; then \
0 commit comments