-
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
fix(ci): detect generated API missing #412
Conversation
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@@ -1,6 +1,6 @@ | |||
// Code generated by protoc-gen-go-http. DO NOT EDIT. | |||
// versions: | |||
// - protoc-gen-go-http v2.7.0 |
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.
this is the result of generating the API bindings with the latest version of the tools
go install ariga.io/atlas/cmd/atlas@v0.12.0 | ||
|
||
# initialize API tooling | ||
.PHONY: init-api-tools |
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.
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 comment
The 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.
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.
LGTM
during #411, we realized that out CI was not checking if all the autogenerated files were checked in. Now we do a similar approach we do for both migrations and ent files.