Skip to content

Commit

Permalink
Fix make tidy not to depend on ./bin path
Browse files Browse the repository at this point in the history
We should not assume that ./bin exists as it is not part of the git
repository but created dynamically.
  • Loading branch information
gibizer committed Apr 5, 2023
1 parent c761b84 commit ff1c8e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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: fmt
go mod tidy; \
pushd "$(LOCALBIN)/../api"; \
pushd $(APIPATH); \
go mod tidy; \
popd

Expand Down

0 comments on commit ff1c8e2

Please sign in to comment.