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

go1.13 报错 github.com/codegangsta/cli: github.com/codegangsta/cli@v1.22.2: parsing go.mod: unexpected module path "github.com/urfave/cli" #50

Closed
zsp042 opened this issue Dec 28, 2019 · 4 comments

Comments

@zsp042
Copy link

zsp042 commented Dec 28, 2019

image
截图如上

@polym
Copy link
Collaborator

polym commented Dec 30, 2019

我这边测试 go1.13 没有问题

image

初步怀疑是 upx 项目跟您本地的 Go Module 环境有些冲突,upx 项目默认是读取 vendor 下的库的。您可以试试,设置 GO111MODULE=off,看能不能解决。

@mritd
Copy link

mritd commented May 18, 2020

确实是 GO111MODULE 的问题,我刚也遇到了;自己 clone 到 gopath 下面然后手动 make 就没问题;不过官方啥时候支持一下 go mod?

@sko00o
Copy link

sko00o commented Jul 27, 2020

GO111MODULE=on github.com/upyun/upx 报错,是因为默认获取的是最新一次的 tag 记录(即 tag v0.2.6 ,还未使用 go mod 管理依赖)。

考虑到国内网络环境,用从 GOPROXY 拉取还是省时间的。要借助 GOPROXY 获取最新记录,就明确指定下分支:

go get -u github.com/upyun/upx@master

要么最新的稳定版本,修好 CI ,打个 tag ?

@finalxcode
Copy link

GO111MODULE=off 然后开启全局代理解决了我的问题

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

6 participants