大家好,请教个问题;
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.
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 次点击dial tcp 216.239.37.1:80: i/o timeout
国内有代理可用于访问
http://golang.org/x/sync
#1