Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go install ./vendor/github.com/mjibson/esc [failed] #25

Open
JrDw0 opened this issue Mar 8, 2019 · 2 comments
Open

go install ./vendor/github.com/mjibson/esc [failed] #25

JrDw0 opened this issue Mar 8, 2019 · 2 comments

Comments

@JrDw0
Copy link
Contributor

JrDw0 commented Mar 8, 2019

image
vendor/github.com/mjibson/esc/embed/embed.go:20:2: cannot find package "github.com/pkg/errors" in any of:
/Users/jrd/.go/src/github.com/opensec-cn/kunpeng/vendor/github.com/pkg/errors (vendor tree)
/usr/local/opt/go/libexec/src/github.com/pkg/errors (from $GOROOT)
/Users/jrd/.go/src/github.com/pkg/errors (from $GOPATH)
vendor/github.com/mjibson/esc/embed/embed.go:21:2: cannot find package "golang.org/x/tools/imports" in any of:
/Users/jrd/.go/src/github.com/opensec-cn/kunpeng/vendor/golang.org/x/tools/imports (vendor tree)
/usr/local/opt/go/libexec/src/golang.org/x/tools/imports (from $GOROOT)
/Users/jrd/.go/src/golang.org/x/tools/imports (from $GOPATH)

go version go1.11.5 darwin/amd64

@Medicean
Copy link
Member

Medicean commented Mar 8, 2019

如果 vendor 里面提供的用不了,就直接安装 esc 就行了

go get -u github.com/mjibson/esc

@xiaobing88
Copy link

golang下载第三方库报错
下载第三方库时网络连接报错:修改GOPROXY为goproxy.cn;
因为 Go 1.13 将 GOPROXY 默认成了中国大陆无法访问的 https://proxy.golang.org

go env -w GOPROXY=https://goproxy.cn,direct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants