来自 Opencensus Libraries for Golang 的供应商问题

Vendoring problem from Opencensus Libraries for Golang

我在出售我的 go-project 时遇到问题。尝试了 glide 和 go-dep - 遇到同样的问题。

$ go get -u go.opencensus.io 给出以下错误:

package go.opencensus.io/opencensus-go: unrecognized import path "go.opencensus.io/opencensus-go" (https fetch: Get https://go.opencensus.io/opencensus-go?go-get=1: dial tcp <some-ip>: i/o timeout)

Github link 这个包 - https://github.com/census-instrumentation/opencensus-go

尝试将代理设置为 shell

export http_proxy=http://104.248.231.49:8080/
export https_proxy=http://104.248.231.49:8080/

然后成功了。