mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
85a207fceb
replace entity GRN with infra/grn GRN
25 lines
508 B
Bash
Executable File
25 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# To compile all protobuf files in this repository, run
|
|
# "make protobuf" at the top-level.
|
|
|
|
set -eu
|
|
|
|
DST_DIR=./
|
|
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
cd "$DIR"
|
|
|
|
protoc \
|
|
-I ./ \
|
|
-I ../../../ \
|
|
--go_out=${DST_DIR} \
|
|
--go_opt=paths=source_relative \
|
|
--go-grpc_out=${DST_DIR} \
|
|
--go-grpc_opt=paths=source_relative \
|
|
--go-grpc_opt=require_unimplemented_servers=false \
|
|
*.proto
|