bingohuang/docker-labs

安装过程中遇到依赖问题

Cong0ks opened this issue · 3 comments

go: github.com/Sirupsen/logrus@v1.4.2: parsing go.mod: unexpected module path "github.com/sirupsen/logrus"
go: error loading module requirements

哦,我自己解决了,方法是:
在项目文件的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
)

然后又出现新问题: - -|||
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

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