Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c50a062

Browse files
committed
墙的问题
1 parent d64f92a commit c50a062

File tree

1 file changed

+8
-7
lines changed
  • websites/code/thirdparty

1 file changed

+8
-7
lines changed

websites/code/thirdparty/getpkg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@ go get -u -v github.com/qiniu/api.v6
1818
go get -u -v github.com/dchest/captcha
1919
go get -u -v github.com/lunny/html2md
2020

21-
cp /etc/hosts ~/hosts
22-
#echo "golang.org 101.251.196.90" > /etc/hosts
23-
echo "127.0.0.1 golang.org" > /etc/hosts
21+
if [ ! -d "src/golang.org/x/text" ]; then
22+
git clone https://github.com/golang/text src/golang.org/x/text
23+
fi
24+
go install golang.org/x/text/...
2425

25-
trap "mv ~/hosts /etc/hosts" HUP INT QUIT TSTP
26+
if [ ! -d "src/golang.org/x/net" ]; then
27+
git clone https://github.com/golang/net src/golang.org/x/net
28+
fi
29+
go install golang.org/x/net/...
2630

2731
go get -u -v github.com/PuerkitoBio/goquery
2832

29-
if [ -f ~/hosts ]; then
30-
mv ~/hosts /etc/hosts
31-
fi
3233

3334
export GOPATH="$OLDGOPATH"
3435
export PATH="$OLDPATH"

0 commit comments

Comments
 (0)