From d151c95d82dd1c00ac4d44aa3db3bc96620ec799 Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 28 Oct 2020 22:41:35 +0100 Subject: [PATCH] node.proto stub and dependencies ghstack-source-id: 2343d22a0ef11674108ede11a426f4b84372bd40 Pull Request resolved: https://github.com/certusone/wormhole/pull/62 --- generate-protos.sh | 15 +++++++++++++-- proto/node/v1/node.proto | 9 +++++++++ third_party/.gitignore | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 proto/node/v1/node.proto create mode 100644 third_party/.gitignore diff --git a/generate-protos.sh b/generate-protos.sh index d84e484cb4..a0c327f00d 100755 --- a/generate-protos.sh +++ b/generate-protos.sh @@ -5,10 +5,21 @@ ./build.sh ) +( + cd third_party/ + [[ ! -d googleapis ]] && git clone https://github.com/googleapis/googleapis + cd googleapis + git checkout 24fb9e5d1f37110bfa198189c34324aa3fdb0896 +) + tools/bin/buf protoc \ + -Iproto \ + -Ithird_party/googleapis \ --plugin tools/bin/protoc-gen-go \ --go_out=bridge/pkg/ proto/**/**/** tools/bin/buf protoc \ - --plugin tools/bin/protoc-gen-go-grpc \ - --go-grpc_out=bridge/pkg/ proto/**/**/** + -Iproto \ + -Ithird_party/googleapis \ + --plugin tools/bin/protoc-gen-go-grpc \ + --go-grpc_out=bridge/pkg/ proto/**/**/** diff --git a/proto/node/v1/node.proto b/proto/node/v1/node.proto new file mode 100644 index 0000000000..f4448a1506 --- /dev/null +++ b/proto/node/v1/node.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package node.v1; + +option go_package = "proto/node/v1;nodev1"; + +import "google/api/annotations.proto"; + +service Node {} diff --git a/third_party/.gitignore b/third_party/.gitignore new file mode 100644 index 0000000000..d4b05a817b --- /dev/null +++ b/third_party/.gitignore @@ -0,0 +1 @@ +googleapis