| Index: tools/cmd/cproto/main.go
|
| diff --git a/tools/cmd/cproto/main.go b/tools/cmd/cproto/main.go
|
| index 4300c8d4d931ba9a83ded82293aefb31abd73c0c..6a2b90d333a9dd58aba5fcd7e8cb5237a6dbaf97 100644
|
| --- a/tools/cmd/cproto/main.go
|
| +++ b/tools/cmd/cproto/main.go
|
| @@ -23,7 +23,10 @@ import (
|
| )
|
|
|
| var (
|
| - verbose = flag.Bool("verbose", false, "print debug messages to stderr")
|
| + verbose = flag.Bool("verbose", false, "print debug messages to stderr")
|
| + withDiscovery = flag.Bool(
|
| + "discovery", true,
|
| + "generate pb.discovery.go file")
|
| withGithub = flag.Bool(
|
| "with-github", true,
|
| "include $GOPATH/src/github.com in proto search path")
|
| @@ -156,6 +159,9 @@ func run(c context.Context, dir string) error {
|
| }
|
| }
|
|
|
| + if !*withDiscovery {
|
| + return nil
|
| + }
|
| // Generate pb.prpc.go
|
| discoveryFile := "pb.discovery.go"
|
| if *renameToTestGo {
|
|
|