mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
21 lines
443 B
Bash
Executable File
21 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# To compile all protobuf files in this repository, run
|
|
# "mage protobuf" at the top-level.
|
|
|
|
set -eu
|
|
|
|
#DST_DIR=../genproto/entity
|
|
DST_DIR=./
|
|
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
cd "$DIR"
|
|
|
|
protoc -I ./ \
|
|
--go_out=${DST_DIR} \
|
|
--go-grpc_out=${DST_DIR} --go-grpc_opt=require_unimplemented_servers=false \
|
|
object.proto
|
|
|