Skip to content

Commit

Permalink
node.proto stub and dependencies
Browse files Browse the repository at this point in the history
ghstack-source-id: 2343d22a0ef11674108ede11a426f4b84372bd40
Pull Request resolved: wormhole-foundation#62
  • Loading branch information
Leo committed Oct 28, 2020
1 parent 13f79a9 commit d151c95
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
15 changes: 13 additions & 2 deletions generate-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 9 additions & 0 deletions proto/node/v1/node.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";

package node.v1;

option go_package = "proto/node/v1;nodev1";

import "google/api/annotations.proto";

service Node {}
1 change: 1 addition & 0 deletions third_party/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
googleapis

0 comments on commit d151c95

Please sign in to comment.