diff --git a/go/dpservice-go/hack/generate-proto.sh b/go/dpservice-go/hack/generate-proto.sh index ae7ed51a..43dd92a2 100755 --- a/go/dpservice-go/hack/generate-proto.sh +++ b/go/dpservice-go/hack/generate-proto.sh @@ -9,20 +9,20 @@ PROTOC_GEN_GO_GRPC="$PROTOC_GEN_GO_PROTOC_GEN_GO_GRPC" BASEDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -NET_DPSERVICE_DIR="../.." -cd "$NET_DPSERVICE_DIR" +DPSERVICE_DIR="../.." +cd "$DPSERVICE_DIR" git describe --tags > ./go/dpservice-go/proto/generated_from.txt cd ./go/dpservice-go/ echo "Generating protobuf" export PATH="$PATH:$(dirname "$PROTOC_GEN_GO")" export PATH="$PATH:$(dirname "$PROTOC_GEN_GO_GRPC")" -protoc --proto_path="$NET_DPSERVICE_DIR" \ +protoc --proto_path="$DPSERVICE_DIR" \ --go_out="$BASEDIR"/.. \ --go_opt=paths=source_relative \ --go-grpc_out="$BASEDIR"/.. \ --go-grpc_opt=paths=source_relative \ - "$NET_DPSERVICE_DIR"/proto/dpdk.proto + "$DPSERVICE_DIR"/proto/dpdk.proto for file in "$BASEDIR"/../proto/*.pb.go; do boilerplate="$(cat "$BASEDIR"/boilerplate.go.txt)"