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 80b430d commit 6f380a2Copy full SHA for 6f380a2
Makefile
@@ -69,11 +69,8 @@ clean:
69
integrations/indexers-mysql/ integrations/indexers-pgsql integrations/indexers-sqlite \
70
integrations/mysql.ini integrations/pgsql.ini
71
72
-required-gofmt-version:
73
- @$(GO) version | grep -q '\(1.7\|1.8\)' || { echo "We require go version 1.7 or 1.8 to format code" >&2 && exit 1; }
74
-
75
.PHONY: fmt
76
-fmt: required-gofmt-version
+fmt:
77
$(GOFMT) -w $(GOFILES)
78
79
.PHONY: vet
@@ -125,7 +122,7 @@ misspell:
125
122
misspell -w -i unknwon $(GOFILES)
126
123
127
124
.PHONY: fmt-check
128
-fmt-check: required-gofmt-version
+fmt-check:
129
# get all go files and run go fmt on them
130
@diff=$$($(GOFMT) -d $(GOFILES)); \
131
if [ -n "$$diff" ]; then \
0 commit comments