|
I'm actually also seeing an issue with dep, but a different error:
$ dep ensure -add go.mongodb.org/mongo-driver/mongo
|
Fetching sources...
|
|
|
Failed to add the dependencies:
|
|
|
✗ could not infer project root from dependency path: go.mongodb.org/mongo-driver/mongo: unable to deduce repository and source type for "go.mongodb.org/mongo-driver/mongo": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://go.mongodb.org/mongo-driver/mongo?go-get=1": Get https://go.mongodb.org/mongo-driver/mongo?go-get=1: x509: certificate signed by unknown authority
|
|
|
adding dependencies failed
|
https://go.mongodb.org/mongo-driver/mongo/ returns a 200, and then redirects to https://godoc.org/go.mongodb.org/mongo-driver//mongo, which returns a 301, and redirects to https://godoc.org/go.mongodb.org/mongo-driver/mongo. I think the redirect isn't being done properly (or at least, in a way that's unexpected by dep) and the dep add is therefore breaking
|