Skip to content

Commit b0ef7aa

Browse files
Merge pull request #35 from gibizer/fix-make-tidy
Fix make tidy not to depend on ./bin path
2 parents f73c095 + ff1c8e2 commit b0ef7aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ fmt: ## Run go fmt against code.
103103
vet: ## Run go vet against code.
104104
go vet ./...
105105

106+
APIPATH ?= $(shell pwd)/api
106107
.PHONY: tidy
107108
tidy: ## Run go mod tidy on every mod file in the repo
108109
go mod tidy; \
109-
pushd "$(LOCALBIN)/../api"; \
110+
pushd $(APIPATH); \
110111
go mod tidy; \
111112
popd
112113

0 commit comments

Comments
 (0)