mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-26 04:40:09 +08:00
fix an issue in getting GOPATH in generate_go.sh (#262)
This commit is contained in:
parent
7c8bc00a00
commit
b4b7dca34f
@ -19,11 +19,11 @@ cmd_exists () {
|
||||
|
||||
PROGRAM=$(basename "$0")
|
||||
|
||||
if [ -z $GOPATH ]; then
|
||||
if [ -z $(go env GOPATH) ]; then
|
||||
printf "Error: the environment variable GOPATH is not set, please set it before running %s\n" $PROGRAM > /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
GOPATH=$(go env GOPATH)
|
||||
GO_PREFIX_PATH=github.com/pingcap-incubator/tinykv/proto/pkg
|
||||
export PATH=$(pwd)/_tools/bin:$GOPATH/bin:$PATH
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user