Skip to content
Snippets Groups Projects
Unverified Commit 666bf7be authored by fagongzi's avatar fagongzi Committed by GitHub
Browse files

Use gogoproto (#2883)

parent ae70cfee
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -5,8 +5,12 @@
#
set -e
VENDOR_DIR="$PWD/vendor"
PB_DIR="$PWD/pkg/pb"
PROTOC_DIR="$PWD/proto"
mkdir -p $PB_DIR/plan
protoc --proto_path=$PROTOC_DIR --go_out=paths=source_relative:$PB_DIR/plan $PROTOC_DIR/plan.proto
for file in `ls $PROTOC_DIR/*.proto`
do
dir=$(basename $file .proto)
mkdir -p $PB_DIR/$dir
protoc -I=.:$PROTOC_DIR:$VENDOR_DIR --gogofast_out=paths=source_relative:./pkg/pb/$dir $file
done
\ No newline at end of file
syntax = "proto3";
package plan;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option go_package = "github.com/matrixorigin/matrixone/pkg/pb/plan";
option (gogoproto.sizer_all) = false;
option (gogoproto.protosizer_all) = true;
message Type {
enum TypeId {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment