未验证 提交 95ba67a3 编写于 作者: L Lei Wang 提交者: GitHub

Build: fix go package installation path. (#11166)

上级 71b6bdb5
...@@ -145,19 +145,17 @@ function check_style() { ...@@ -145,19 +145,17 @@ function check_style() {
trap 'abort' 0 trap 'abort' 0
set -e set -e
# install glide if [ -x "$(command -v gimme)" ]; then
curl https://glide.sh/get | bash
eval "$(GIMME_GO_VERSION=1.8.3 gimme)" eval "$(GIMME_GO_VERSION=1.8.3 gimme)"
fi
# set up go environment for running gometalinter # set up go environment for running gometalinter
mkdir -p $GOPATH/src/github.com/PaddlePaddle/ mkdir -p $GOPATH/src/github.com/PaddlePaddle/
ln -sf ${PADDLE_ROOT} $GOPATH/src/github.com/PaddlePaddle/Paddle ln -sf ${PADDLE_ROOT} $GOPATH/src/github.com/PaddlePaddle/Paddle
cd $GOPATH/src/github.com/PaddlePaddle/Paddle/go; glide install; cd - mkdir -p ./build/go
cp go/glide.* build/go
go get github.com/alecthomas/gometalinter cd build/go; glide install; cd -
gometalinter --install
cd ${PADDLE_ROOT}
export PATH=/usr/bin:$PATH export PATH=/usr/bin:$PATH
pre-commit install pre-commit install
clang-format --version clang-format --version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册