diff --git a/Makefile b/Makefile index 962c9c24..bdb684a6 100644 --- a/Makefile +++ b/Makefile @@ -103,10 +103,11 @@ fmt: ## Run go fmt against code. vet: ## Run go vet against code. go vet ./... +APIPATH ?= $(shell pwd)/api .PHONY: tidy tidy: ## Run go mod tidy on every mod file in the repo go mod tidy; \ - pushd "$(LOCALBIN)/../api"; \ + pushd $(APIPATH); \ go mod tidy; \ popd