mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-30 08:06:40 +02:00
9e6db79860
* regenerate all proto Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * regenerate from proto Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * regenerate from proto Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
10 lines
312 B
Bash
Executable File
10 lines
312 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
find . -type f -name '*.pb.*.go' -o -name '*.pb.go' -a ! -name 'message.pb.go' -delete
|
|
PROTOS=$(find . -type f -name '*.proto')
|
|
|
|
for PROTO in $PROTOS; do
|
|
echo $PROTO
|
|
protoc -I./ -I$(dirname $PROTO) --go_out=plugins=grpc,paths=source_relative:. --micro_out=paths=source_relative:. $PROTO
|
|
done
|