-
Notifications
You must be signed in to change notification settings - Fork 38
fix(ci): detect generated API missing #412
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,21 @@ VERSION=$(shell git describe --tags --always) | |
|
||
.PHONY: init | ||
# init env | ||
init: | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0 | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 | ||
go install github.com/envoyproxy/protoc-gen-validate@v1.0.1 | ||
go install github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2@latest | ||
go install github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2@latest | ||
init: init-api-tools | ||
go install github.com/google/wire/cmd/wire@latest | ||
go install github.com/vektra/mockery/v2@v2.20.0 | ||
go install ariga.io/atlas/cmd/atlas@v0.12.0 | ||
|
||
# initialize API tooling | ||
.PHONY: init-api-tools | ||
init-api-tools: | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0 | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 | ||
go install github.com/bufbuild/buf/cmd/buf@v1.10.0 | ||
go install github.com/envoyproxy/protoc-gen-validate@v1.0.1 | ||
# Tools fixed to a specific version via its commit since they are not released standalone | ||
go install github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2@v2.0.0-20231102162905-3fc8fb7a0a0b | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also make sure to "fix the version" of some of these deps, before it was latest. |
||
go install github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2@v2.0.0-20231102162905-3fc8fb7a0a0b | ||
|
||
# show help | ||
help: | ||
|
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.
I split the tools for API handling to its own target so the impact in the CI during installation is limited.