diff --git a/websites/code/studygolang/src/service/uploader.go b/websites/code/studygolang/src/service/uploader.go index a65e7b08..09df7efa 100644 --- a/websites/code/studygolang/src/service/uploader.go +++ b/websites/code/studygolang/src/service/uploader.go @@ -5,9 +5,9 @@ import ( gio "io" "config" - "github.com/qiniu/api/conf" - "github.com/qiniu/api/io" - "github.com/qiniu/api/rs" + "github.com/qiniu/api.v6/conf" + "github.com/qiniu/api.v6/io" + "github.com/qiniu/api.v6/rs" "logger" ) diff --git a/websites/code/thirdparty/getpkg b/websites/code/thirdparty/getpkg index 2cdbcedd..cfaf5376 100755 --- a/websites/code/thirdparty/getpkg +++ b/websites/code/thirdparty/getpkg @@ -14,7 +14,7 @@ go get -u -v github.com/go-sql-driver/mysql go get -u -v github.com/studygolang/mux go get -u -v github.com/gorilla/sessions go get -u -v github.com/robfig/cron -go get -u -v github.com/qiniu/api +go get -u -v github.com/qiniu/api.v6 go get -u -v github.com/dchest/captcha cp /etc/hosts ~/hosts diff --git a/websites/code/thirdparty/getpkg.bat b/websites/code/thirdparty/getpkg.bat index b5b16fcf..885144b2 100644 --- a/websites/code/thirdparty/getpkg.bat +++ b/websites/code/thirdparty/getpkg.bat @@ -15,8 +15,9 @@ go get -u -v github.com/go-sql-driver/mysql go get -u -v github.com/studygolang/mux go get -u -v github.com/gorilla/sessions go get -u -v github.com/robfig/cron -go get -u -v github.com/qiniu/api go get -u -v github.com/dchest/captcha +go get -u -v github.com/andybalholm/cascadia +go get -u -v github.com/qiniu/api.v6 if not exist "src/golang.org/x/text" ( git clone https://github.com/golang/text src/golang.org/x/text @@ -28,13 +29,13 @@ if not exist "src/golang.org/x/net" ( ) go install golang.org/x/net/... -go get -u -v github.com/andybalholm/cascadia -if not exist "github.com/PuerkitoBio/goquery" ( +if not exist "src/github.com/PuerkitoBio/goquery" ( git clone https://github.com/PuerkitoBio/goquery src/github.com/PuerkitoBio/goquery ) ::go get -u -v github.com/PuerkitoBio/goquery + set GOPATH=%OLDGOPATH% :end