github.com/matrixorigin/matrixone@v1.2.0/pkg/vm/engine/protogen.sh (about) 1 #!/bin/bash 2 3 WORKSPACE=$(dirname $(go env GOMOD)) 4 VENDOR_DIR="$WORKSPACE/vendor" 5 PROTOC_DIR="$WORKSPACE/proto" 6 if [ "${GOPATH}" == "" ];then 7 GOPATH=`go env GOPATH` 8 fi 9 10 # https://github.com/gogo/protobuf.git@v1.3.2 11 ${GOPATH}/bin/protoc -I=.:$PROTOC_DIR:$VENDOR_DIR --gogofast_out=paths=source_relative:. types.proto 12 goimports -w *.pb.go