Codebase list golang-goprotobuf / 7aff0cf
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
3 changed file(s) with 0 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
+0
-20
debian/patches/03-Regenerate_all.patch less more
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
+0
-1
debian/patches/series less more
0 03-Regenerate_all.patch
66
77 %:
88 dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang --with golang
9
10 execute_after_dh_auto_configure:
11 cd $(BUILDDIR)/src/github.com/golang/protobuf; \
12 GOPATH=$(BUILDDIR) GOCACHE=$(BUILDDIR)/go-build \
13 $(CURDIR)/regenerate.sh