Skip to content

Conversation

migmartri
Copy link
Member

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.

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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.

Copy link
Member

@danlishka danlishka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@migmartri migmartri merged commit 4f278b6 into chainloop-dev:main Nov 3, 2023
@migmartri migmartri deleted the auto-detect-api-missing branch November 3, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants