Skip to content

Commit aa8bf9d

Browse files
author
Aaron Schlesinger
committed
fix(Makefile): dockerize the style checks
1 parent d649aa3 commit aa8bf9d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,9 @@ setup-gotools:
8888
test: test-style test-unit
8989

9090
test-style:
91-
@if [ $(shell $(GOFMT) $(GO_FILES) $(GO_PACKAGES)) ]; then \
92-
echo "gofmt check failed:"; $(GOFMT) $(GO_FILES) $(GO_PACKAGES); exit 1; \
93-
fi
94-
@go vet $(repo_path) $(GO_PACKAGES_REPO_PATH)
91+
${DEV_ENV_CMD} sh -c '${GOFMT} ${GO_FILES} ${GO_PACKAGES} && go vet $(repo_path) $(GO_PACKAGES_REPO_PATH)'
9592
@for i in $(addsuffix /...,$(GO_PACKAGES)); do \
96-
golint $$i; \
93+
${DEV_ENV_CMD} golint $$i; \
9794
done
9895

9996
test-unit:

0 commit comments

Comments
 (0)