-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use gomods; update generated; add CI check for tidy+generate #505
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,12 +130,25 @@ format-go-fmt: | |
cd ./ops && go fmt ./... | ||
cd ./integration-tests && go fmt ./... | ||
|
||
.PHONY: gomods | ||
gomods: ## Install gomods | ||
go install github.com/jmank88/[email protected] | ||
|
||
.PHONY: gomodtidy | ||
gomodtidy: | ||
cd ./relayer && go mod tidy | ||
cd ./monitoring && go mod tidy | ||
cd ./ops && go mod tidy | ||
cd ./integration-tests && go mod tidy | ||
gomodtidy: gomods | ||
gomods tidy | ||
|
||
.PHONY: mockery | ||
mockery: $(mockery) ## Install mockery. | ||
go install github.com/vektra/mockery/[email protected] | ||
|
||
.PHONY: rm-mocked | ||
rm-mocked: | ||
grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm | ||
|
||
.PHONY: generate | ||
generate: mockery gomods | ||
gomods -w go generate -x ./... | ||
|
||
.PHONY: format-cairo | ||
format-cairo: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should either make
check-tidy
required, or move it up in to an existing required step.