I would like to get my dependencies from a private golang registry.
By using GOPROXY
.
I would like to make sure all dependencies are coming from that private registry.
The only way I found for now is by doing
go get -v -t github.com/opentracing/opentracing-go@fakeversion
Which will return
go get: github.com/opentracing/opentracing-go@fakeversion: invalid version: reading http://myprivateregistry.com 404 Not found
How can I get the registry it's taken from without doing that?
You can trace
go get
withgo get -v -x <package>
(can omit-v
) and check that the requests match your expectations: