Don't regenerate .pb.go files from .proto files
Upstream dropped regenerate.sh and carrying this code in packaging is
too much work for questionable gain.
Balint Reczey
3 years ago
0 | Description: Patch regenerate.sh script to rebuild all *.pb.go files. | |
1 | --- a/regenerate.sh | |
2 | +++ b/regenerate.sh | |
3 | @@ -19,6 +19,8 @@ | |
4 | PROTO_DIRS=( | |
5 | jsonpb/jsonpb_test_proto | |
6 | proto | |
7 | + protoc-gen-go/descriptor | |
8 | + protoc-gen-go/plugin | |
9 | protoc-gen-go/testdata | |
10 | ) | |
11 | for dir in ${PROTO_DIRS[@]}; do | |
12 | @@ -50,3 +52,7 @@ | |
13 | protoc --go_out=paths=source_relative:$tmpdir google/protobuf/descriptor.proto | |
14 | cp $tmpdir/google/protobuf/descriptor.pb.go protoc-gen-go/descriptor | |
15 | cp $PROTO_INCLUDE/google/protobuf/descriptor.proto protoc-gen-go/descriptor | |
16 | + | |
17 | +echo "# google/protobuf/field_mask.proto" | |
18 | +mkdir -p vendor | |
19 | +protoc -I$PROTO_INCLUDE --go_out=plugins=grpc:vendor google/protobuf/field_mask.proto |