Skip to content

Commit 15653fe

Browse files
authoredApr 24, 2020
all: refactor .pb.go generation (grpc#3451)
Replace various //go:generate lines and regenerate.sh scripts with a single, top-level regenerate.sh that regenerates all .pb.go files. Placing generation in a single script ensures that all files are generated with similar parameters. The new regenerate.sh uses the protoc-gen-go version defined in test/tools/go.mod and automatically handles new .proto files as they are added. Do some minor refactoring on .proto files: Every file now has a go_package option (which will be required by a future version of the code generator), and file imports are all relative to the repository root.
1 parent 7d6aa9e commit 15653fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1009
-1215
lines changed
 

‎balancer/grpclb/grpclb.go

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
*
1717
*/
1818

19-
//go:generate ./regenerate.sh
20-
2119
// Package grpclb defines a grpclb balancer.
2220
//
2321
// To install grpclb balancer, import this package as:

‎balancer/grpclb/regenerate.sh

-33
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.