dep ensure -add "go.mongodb.org/mongo-driver/mongo@~1.0.0" unable to deduce repository and source type for "golang.org/x

weixin_38050602 2019-09-20 10:48:21
大家好,请教个问题;
1,我的项目中需要使用mongodb数据库,
2,想用go.mongodb.org/mongo-driver 驱动进行开发
3,在进行依赖安装时,失败;信息如下:
dep ensure -add "go.mongodb.org/mongo-driver/mongo@~1.0.0"
Solving failure: No versions of go.mongodb.org/mongo-driver met constraints:
v1.0.0: unable to deduce repository and source type for "golang.org/x/sync/semaphore": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sync/semaphore?go-get=1": Get http://golang.org/x/sync/semaphore?go-get=1: dial tcp 216.239.37.1:80: i/o timeout
v0.3.0: Could not introduce go.mongodb.org/mongo-driver@v0.3.0, as it is not allowed by constraint ~1.0.0 from project main.
v0.2.0: Could not introduce go.mongodb.org/mongo-driver@v0.2.0, as it is not allowed by constraint ~1.0.0 from project main.
v0.1.0: Could not introduce go.mongodb.org/mongo-driver@v0.1.0, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.18: Could not introduce go.mongodb.org/mongo-driver@v0.0.18, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.17: Could not introduce go.mongodb.org/mongo-driver@v0.0.17, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.16: Could not introduce go.mongodb.org/mongo-driver@v0.0.16, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.15: Could not introduce go.mongodb.org/mongo-driver@v0.0.15, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.14: Could not introduce go.mongodb.org/mongo-driver@v0.0.14, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.13: Could not introduce go.mongodb.org/mongo-driver@v0.0.13, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.12: Could not introduce go.mongodb.org/mongo-driver@v0.0.12, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.11: Could not introduce go.mongodb.org/mongo-driver@v0.0.11, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.10: Could not introduce go.mongodb.org/mongo-driver@v0.0.10, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.9: Could not introduce go.mongodb.org/mongo-driver@v0.0.9, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.8: Could not introduce go.mongodb.org/mongo-driver@v0.0.8, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.7: Could not introduce go.mongodb.org/mongo-driver@v0.0.7, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.6: Could not introduce go.mongodb.org/mongo-driver@v0.0.6, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.5: Could not introduce go.mongodb.org/mongo-driver@v0.0.5, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.4: Could not introduce go.mongodb.org/mongo-driver@v0.0.4, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.3: Could not introduce go.mongodb.org/mongo-driver@v0.0.3, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.2: Could not introduce go.mongodb.org/mongo-driver@v0.0.2, as it is not allowed by constraint ~1.0.0 from project main.
v0.0.1: Could not introduce go.mongodb.org/mongo-driver@v0.0.1, as it is not allowed by constraint ~1.0.0 from project main.
v1.0.0-rc2: Could not introduce go.mongodb.org/mongo-driver@v1.0.0-rc2, as it is not allowed by constraint ~1.0.0 from project main.
v1.0.0-rc1: Could not introduce go.mongodb.org/mongo-driver@v1.0.0-rc1, as it is not allowed by constraint ~1.0.0 from project main.
master: Could not introduce go.mongodb.org/mongo-driver@master, as it is not allowed by constraint ~1.0.0 from project main.
bson-depth-tracking: Could not introduce go.mongodb.org/mongo-driver@bson-depth-tracking, as it is not allowed by constraint ~1.0.0 from project main.
design: Could not introduce go.mongodb.org/mongo-driver@design, as it is not allowed by constraint ~1.0.0 from project main.
networking-library: Could not introduce go.mongodb.org/mongo-driver@networking-library, as it is not allowed by constraint ~1.0.0 from project main.
release/1.0: Could not introduce go.mongodb.org/mongo-driver@release/1.0, as it is not allowed by constraint ~1.0.0 from project main.
...全文
43 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38089806 2019-09-20
  • 打赏
  • 举报
回复
dial tcp 216.239.37.1:80: i/o timeout 国内有代理可用于访问 http://golang.org/x/sync

430

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧