From 2965e8092e4510c35d13304f2896ce5d7593d635 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 6 Apr 2019 21:48:21 +0900 Subject: add script to generate api/gobgp.pb.go Signed-off-by: FUJITA Tomonori --- BUILD.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'BUILD.md') diff --git a/BUILD.md b/BUILD.md index 2b3b3c15..af1bfb26 100644 --- a/BUILD.md +++ b/BUILD.md @@ -24,6 +24,7 @@ The GoBGP project adopts [Standard Go Project Layout](https://github.com/golang- If you change the gRPC API, generate `api/gobgp.pb.go` in the following way: ```bash -$ protoc -I ~/protobuf/src -I ${GOBGP}/api --go_out=plugins=grpc:${GOBGP}/api \ - ${GOBGP}/api/gobgp.proto ${GOBGP}/api/attribute.proto ${GOBGP}/api/capability.proto +$ ./tools/grpc/genproto.sh ``` + +In order for the script to run, you'll need protoc (version 3.7.1) in your PATH. \ No newline at end of file -- cgit v1.2.3