Skip to content
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

Chore: Migrate to use buf for protobuf generation #979

Merged
merged 12 commits into from May 8, 2024
Merged

Conversation

marefr
Copy link
Member

@marefr marefr commented May 6, 2024

What this PR does / why we need it:
Migrate to use Buf CLI for generating protobuf files.
Bonus we can validate breaking changes in CI.
There's protobuf linter as well, but it does generate a lot of errors so skipping usage of that for now.

Which issue(s) this PR fixes:
Closes #751

Special notes for your reviewer:

@marefr marefr self-assigned this May 6, 2024
@marefr marefr marked this pull request as ready for review May 6, 2024 20:32
@marefr marefr requested a review from a team as a code owner May 6, 2024 20:32
@marefr marefr requested review from wbrowne, andresmgot, oshirohugo and xnyo and removed request for a team May 6, 2024 20:32
Magefile.go Outdated Show resolved Hide resolved
Copy link
Member

@xnyo xnyo left a comment

Choose a reason for hiding this comment

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

I only have one small comment, but LGTM! Awesome! 🚀

Magefile.go Outdated Show resolved Hide resolved
@marefr marefr requested a review from xnyo May 8, 2024 10:50
@marefr
Copy link
Member Author

marefr commented May 8, 2024

https://github.com/grafana/test-datasource with this branch on grafana main works as expected
https://github.com/grafana/test-datasource without updated SDK (v0.213.0) on grafana/grafana#87407 works as expected

@marefr marefr merged commit a502fa5 into main May 8, 2024
3 checks passed
@marefr marefr deleted the chore_migrate_buf branch May 8, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Docs: Update developer-guide.md in regards to Generate Go code for Protobuf definitions
3 participants