瀏覽代碼

go get dependencies on executable

Eric Robitaille 11 年之前
父節點
當前提交
eba3fca7bc
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      install.sh

+ 8 - 0
install.sh

@@ -28,6 +28,14 @@ echo "changing branch to $branch"
 cd $GOPATH/src/github.com/ethereum/go-ethereum
 git checkout $branch
 
+
+echo "go get -u -d github.com/ethereum/go-ethereum/$path"
+go get -v -u -d github.com/ethereum/go-ethereum/$path
+if [ $? != 0 ]; then
+	echo "go get failed"
+	exit
+fi
+
 cd $GOPATH/src/github.com/ethereum/go-ethereum/$path
 
 if [ "$exe" == "mist" ]; then