Chore: Migrate to use buf for protobuf generation (#87407)

* Chore: Migrate to use buf for protobuf generation

* fix codeowners

* fixes after review

* docs/tooling for installing buf

* add back codeowners

* Update upgrading-dependencies.md

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>

* sdk v0.229.0

---------

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
This commit is contained in:
Marcus Efraimsson
2024-05-08 15:42:40 +02:00
committed by GitHub
parent 2dc19a0241
commit 41b29ff93c
29 changed files with 106 additions and 398 deletions

View File

@@ -2,12 +2,16 @@
Notes on upgrading various backend dependencies.
# Protobuf
## Protobuf
When upgrading the [protobuf](http://github.com/golang/protobuf) library in Grafana and the plugin SDK,
you typically also want to upgrade your protobuf compiler toolchain and re-compile protobuf files:
you typically also want to upgrade your protobuf compiler toolchain and re-compile protobuf files.
```
**Note:** You need Buf CLI installed and availabile in your path, see https://buf.build/docs/installation for instructions.
Re-compile protobuf files in grafana and the plugin SDK:
```shell
cd $GRAFANA
make protobuf
cd $GRAFANA_PLUGIN_SDK_GO