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 mod vendor 提示:go: error loading module requirements #305

Closed
DukeAnn opened this issue Feb 22, 2019 · 2 comments
Closed

go mod vendor 提示:go: error loading module requirements #305

DukeAnn opened this issue Feb 22, 2019 · 2 comments

Comments

@DukeAnn
Copy link

DukeAnn commented Feb 22, 2019

使用 go mod 进项包管理但是添加 rpcx 的时候包管理出现了问题。如下:

go: finding github.com/smallnest/rpcx/server latest
go: finding github.com/smallnest/rpcx latest
go: labix.org/v2/mgo@v0.0.0-20140701140051-000000000287: bzr branch --use-existing-dir https://launchpad.net/mgo/v2 . in D:\GoPath\pkg\mod\cache\vcs\ca61c737a32b1e09a0919e15375f9c2b6aa0
9860cc097f1333b3c3d29e040ea8: exec: "bzr": executable file not found in %PATH%
go: launchpad.net/gocheck@v0.0.0-20140225173054-000000000087: bzr branch --use-existing-dir https://launchpad.net/~niemeyer/gocheck/trunk . in D:\GoPath\pkg\mod\cache\vcs\f46ce2ae80d31f
9b0a29099baa203e3b6d269dace4e5357a2cf74bd109e13339: exec: "bzr": executable file not found in %PATH%
go: error loading module requirements

@smallnest
Copy link
Owner

提示信息已经提醒你了, labix.org/v2/mgo 是使用 bzr版本工具管理的,所以你需要下载bzr工具。

不过我还是修改了go.mod,强制切换成git版本管理的版本, 避免有的用户没有安装bzr

@DukeAnn
Copy link
Author

DukeAnn commented Feb 22, 2019

好的多谢 我自己替换了就好了

replace launchpad.net/gocheck v0.0.0-20140225173054-000000000087 => github.com/go-check/check v0.0.0-20180628173108-788fd7840127

replace labix.org/v2/mgo v0.0.0-20140701140051-000000000287 => github.com/go-mgo/mgo v0.0.0-20180705113738-7446a0344b78

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