We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
make build
GOPATH
1 parent 5502cc6 commit 80ae723Copy full SHA for 80ae723
1 file changed
Makefile
@@ -23,7 +23,7 @@ build:
23
EXT=".exe"; \
24
fi; \
25
docker run -it --rm \
26
- -v $(GOPATH)/src/github.com/lopezator/sqlfmt:/go/src/github.com/lopezator/sqlfmt \
+ -v $(shell go env GOPATH)/src/github.com/lopezator/sqlfmt:/go/src/github.com/lopezator/sqlfmt \
27
-w /go/src/github.com/lopezator/sqlfmt \
28
-e CGO_ENABLED=1 \
29
$(BUILDER) \
@@ -41,4 +41,4 @@ sql-fmt:
41
sql-check:
42
@echo "Running sql-check..."
43
@find . -name '*.sql' -print0 | xargs -I '{}' -0 \
44
- bash -c 'diff {} <(sqlfmt < {})' > /dev/null || (echo "sql-check failed, run \"make sql-fmt\" and try again"; exit 1)
+ bash -c 'diff {} <(sqlfmt < {})' > /dev/null || (echo "sql-check failed, run \"make sql-fmt\" and try again"; exit 1)
0 commit comments