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

ghBrave · · 3491 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

大家好,请教个问题; 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.

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

3491 次点击  
加入收藏 微博
1 回复  |  直到 2019-03-25 19:53:35
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传