From 7479aedf070db665a83a5e78838ac6de8678da6f Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Thu, 10 Sep 2020 20:23:51 +0800 Subject: [PATCH] Add export path Signed-off-by: zhenshan.cao --- scripts/generate_go.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generate_go.sh b/scripts/generate_go.sh index 61d59e77cb..8e6a5ade41 100755 --- a/scripts/generate_go.sh +++ b/scripts/generate_go.sh @@ -41,8 +41,12 @@ if [ -z $GOPATH ]; then exit 1 fi +export PATH=${GOPATH}/bin:$PATH +echo `which protoc-gen-go` + GO_PREFIX_PATH=github.com/czs007/suvlim/pkg + function collect() { file=$(basename $1) base_name=$(basename $file ".proto")