Skip to content

Commit

Permalink
use gomods
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 committed Aug 6, 2024
1 parent 3a0f722 commit e03928c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.PHONY: gomods
gomods: ## Install gomods
go install github.com/jmank88/[email protected]

.PHONY: gomodtidy
gomodtidy:
go mod tidy
gomods tidy

.PHONY: docs
docs:
Expand All @@ -22,11 +26,9 @@ rm-mocked:
grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm

.PHONY: generate
generate: mockery install-protoc
# add our installed protoc to the head of the PATH
# maybe there is a cleaner way to do this
PATH=$$HOME/.local/bin:$$PATH go generate -x ./...; \
mockery
generate: mockery install-protoc gomods
gomods -w go generate -x ./...
mockery

.PHONY: lint-workspace lint
GOLANGCI_LINT_VERSION := 1.55.2
Expand Down

0 comments on commit e03928c

Please sign in to comment.