зеркало из https://github.com/github/vitess-gh.git
fix GOROOT checking
This commit is contained in:
Родитель
23d8fa89e0
Коммит
aea84a9dcd
18
dev.env
18
dev.env
|
@ -11,14 +11,6 @@ fi
|
|||
export GOTOP=$VTTOP/go
|
||||
export PYTOP=$VTTOP/py
|
||||
|
||||
# GO ROOT sanity
|
||||
go_bin=`which go`
|
||||
go_env=`go env | grep GOROOT | cut -f 2 -d\"`
|
||||
if [ "$go_bin" != "$go_env/bin/go" ]; then
|
||||
echo "WARNING: \$GOROOT may not compatible with the used go binary"
|
||||
echo "Please make sure 'go' comes from \$GOROOT/bin"
|
||||
fi
|
||||
|
||||
function prepend_path()
|
||||
{
|
||||
# $1 path variable
|
||||
|
@ -45,6 +37,16 @@ if [ "$GOBIN" ]; then
|
|||
export PATH=$(prepend_path $PATH $GOBIN)
|
||||
fi
|
||||
|
||||
# GOROOT sanity
|
||||
go_bin=`which go`
|
||||
go_env=`go env | grep GOROOT | cut -f 2 -d\"`
|
||||
if [ "$go_bin" -a "$go_bin" != "$go_env/bin/go" ]; then
|
||||
echo "WARNING: \$GOROOT may not compatible with the used go binary"
|
||||
echo "Please make sure 'go' comes from \$GOROOT/bin"
|
||||
echo "go_env: $go_env"
|
||||
echo "go_bin: $go_bin"
|
||||
fi
|
||||
|
||||
# mysql install location. Please set based on your environment.
|
||||
# Build will not work if this is incorrect.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче