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