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

安装过程中遇到依赖问题 #4

Open
Cong0ks opened this issue Jul 2, 2019 · 3 comments
Open

安装过程中遇到依赖问题 #4

Cong0ks opened this issue Jul 2, 2019 · 3 comments

Comments

@Cong0ks
Copy link

Cong0ks commented Jul 2, 2019

go: github.com/Sirupsen/[email protected]: parsing go.mod: unexpected module path "github.com/sirupsen/logrus"
go: error loading module requirements

@Cong0ks
Copy link
Author

Cong0ks commented Jul 2, 2019

哦,我自己解决了,方法是:
在项目文件的go.mod里面写入下面信息:

replace (
github.com/Sirupsen/logrus v1.3.0 => github.com/Sirupsen/logrus v1.0.6
github.com/Sirupsen/logrus v1.4.0 => github.com/sirupsen/logrus v1.0.6
github.com/Sirupsen/logrus v1.0.5 => github.com/sirupsen/logrus v1.0.5
)

@Cong0ks
Copy link
Author

Cong0ks commented Jul 2, 2019

然后又出现新问题: - -|||
build github.com/bingohuang/docker-labs: cannot load github.com/play-with-docker/play-with-docker/config: cannot find module providing package github.com/play-with-docker/play-with-docker/config

@bingohuang
Copy link
Owner

因为我这个项目没有引入 go mod,是不是这个原因导致?你用常规方法构建呢?

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

2 participants