-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法使用 go mod的方式来安装库 #16
Comments
F:\gowork\src\github.com\henson\proxypool>go get unknwon.dev/clog/v2
go: finding github.com/go-clog/clog v2.1.0
go: errors parsing go.mod:
F:\gowork\src\github.com\henson\proxypool\go.mod:11: require github.com/go-clog/
clog: reading https://goproxy.cn/github.com/go-clog/clog/@v/v2.1.0.info: 404 Not
Found |
老哥,你是不是源码用的导入路径不对啊,你的 import 这行发出来看下? 另外 go.mod 中是不是已经有了 github.com/go-clog/clog这行,有的话也要先删掉。 |
这样啊。我试试吼。。 |
尝试过了。。 module github.com/henson/proxypool
go 1.13
require (
github.com/Aiicy/htmlquery v0.0.0-20191217151354-e656ce3100dc
github.com/PuerkitoBio/goquery v1.5.0
github.com/antchfx/xpath v1.1.4 // indirect
github.com/bitly/go-simplejson v0.5.0
github.com/fatih/color v1.9.0 // indirect
unknwon.dev/clog v2.1.0
github.com/go-ini/ini v1.52.0
github.com/go-sql-driver/mysql v1.5.0
github.com/go-xorm/xorm v0.7.9
github.com/lib/pq v1.3.0
github.com/mattn/go-sqlite3 v2.0.3+incompatible
github.com/nladuo/go-phantomjs-fetcher v0.0.0-20190613094346-fa84d9f5c647
github.com/parnurzeal/gorequest v0.2.16
moul.io/http2curl v1.0.0 // indirect
xorm.io/core v0.7.3
) 在项目的目录运行命令 go build 出错信息 F:\gowork\src\github.com\henson\proxypool>go build
go: finding unknwon.dev/clog v2.1.0
go: errors parsing go.mod:
F:\gowork\src\github.com\henson\proxypool\go.mod:11: require unknwon.dev/clog: r
eading https://goproxy.cn/unknwon.dev/clog/@v/v2.1.0.info: 404 Not Found |
- unknwon.dev/clog v2.1.0
+ unknwon.dev/clog/v2 v2.1.0 |
行了,已经可以用. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用了 阿里云的 proxy
和 goproxy.cn
The text was updated successfully, but these errors were encountered: