Browse Source

node.proto stub and dependencies

ghstack-source-id: 2343d22a0ef11674108ede11a426f4b84372bd40
Pull Request resolved: https://github.com/certusone/wormhole/pull/62
Leo 5 năm trước cách đây
mục cha
commit
d151c95d82
3 tập tin đã thay đổi với 23 bổ sung2 xóa
  1. 13 2
      generate-protos.sh
  2. 9 0
      proto/node/v1/node.proto
  3. 1 0
      third_party/.gitignore

+ 13 - 2
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/**/**/**

+ 9 - 0
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 {}

+ 1 - 0
third_party/.gitignore

@@ -0,0 +1 @@
+googleapis