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

Skip to content

Commit 7fedacc

Browse files
committed
依赖
1 parent c50a062 commit 7fedacc

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

websites/code/thirdparty/getpkg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@ if [ ! -d "src/golang.org/x/text" ]; then
2323
fi
2424
go install golang.org/x/text/...
2525

26+
if [ ! -d "src/golang.org/x/crypto" ]; then
27+
git clone https://github.com/golang/crypto src/golang.org/x/crypto
28+
fi
29+
go install golang.org/x/crypto/...
30+
2631
if [ ! -d "src/golang.org/x/net" ]; then
2732
git clone https://github.com/golang/net src/golang.org/x/net
2833
fi
2934
go install golang.org/x/net/...
3035

36+
3137
go get -u -v github.com/PuerkitoBio/goquery
3238

3339

websites/code/thirdparty/getpkg.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ if not exist "src/golang.org/x/text" (
2424
)
2525
go install golang.org/x/text/...
2626

27-
if not exist "src/golang.org/x/net" (
28-
git clone https://github.com/golang/net src/golang.org/x/net
27+
if not exist "src/golang.org/x/crypto" (
28+
git clone https://github.com/golang/crypto src/golang.org/x/crypto
2929
)
30-
go install golang.org/x/net/...
30+
go install golang.org/x/crypto/...
3131

32-
33-
if not exist "src/github.com/PuerkitoBio/goquery" (
34-
git clone https://github.com/PuerkitoBio/goquery src/github.com/PuerkitoBio/goquery
32+
if not exist "src/golang.org/x/crypto" (
33+
git clone https://github.com/golang/crypto src/golang.org/x/crypto
3534
)
36-
::go get -u -v github.com/PuerkitoBio/goquery
35+
go install golang.org/x/crypto/...
3736

37+
go get -u -v github.com/PuerkitoBio/goquery
3838

3939
set GOPATH=%OLDGOPATH%
4040

0 commit comments

Comments
 (0)