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
co-authored by Giuseppe Guerra
parent 2dc19a0241
commit 41b29ff93c
29 changed files with 106 additions and 398 deletions
+7 -16
View File
@@ -1,25 +1,16 @@
#!/usr/bin/env bash
# Check whether protobuf & go plugin are installed
PROTOC_HELP_URL="http://google.github.io/proto-lens/installing-protoc.html"
PROTOC_GEN_GO_HELP_URL="https://github.com/golang/protobuf/tree/v1.3.4#installation"
# Check whether buf cli is installed
BUF_HELP_URL="https://buf.build/docs/installation"
EXIT_CODE=0
if ! [ -x "$(command -v protoc)" ]; then
echo "Protocol Buffers not found."
echo "Please install Protocol Buffers and ensure 'protoc' is available in your PATH."
echo "See ${PROTOC_HELP_URL} for more."
if ! [ -x "$(command -v buf)" ]; then
echo "Buf CLI not found."
echo "Please install Buf CLI and ensure 'buf' is available in your PATH."
echo "See ${BUF_HELP_URL} for help."
echo
EXIT_CODE=1
fi
if ! [ -x "$(command -v protoc-gen-go)" ]; then
echo "Protocol Buffers Go plugin not found."
echo "Please install the plugin and ensure 'protoc-gen-go' is available in your PATH."
echo "See ${PROTOC_GEN_GO_HELP_URL} for more."
echo
EXIT_CODE=1
fi
exit $EXIT_CODE
exit $EXIT_CODE