GO111MODULE = on(错误加载模块要求)

go get -u github.com/junegunn/fzf 可以正常工作,但是想要像这样测试开发分支:

gert@gert ~/ GO111MODULE=on go get -u github.com/junegunn/fzf@devel

go: finding github.com/junegunn/fzf devel

go: finding golang.org/x/crypto latest

go: finding github.com/smartystreets/assertions latest

go: finding github.com/gopherjs/gopherjs latest

go: finding github.com/smartystreets/goconvey latest

go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1

go: finding golang.org/x/sys latest

go: finding golang.org/x/tools v0.0.0-20190328211700-ab21143f2384

go: gopkg.in/DATA-DOG/go-sqlmock.v1@v1.3.3: go.mod has non-....v1 module path "github.com/DATA-DOG/go-sqlmock" at revision v1.3.3

go get: error loading module requirements

不知道这是怎么回事?如果我做得到相同的结果

GO111MODULE=on go get -u github.com/junegunn/fzf

回答:

github.com/gdamore/tcell所需的软件包fzf具有gopkg.in/DATA-DOG/go-

sqlmock.v1依赖关系。在1.3.3版中,go-sqlmock他们开始使用不带版本后缀的go模块,现在明确指示该版本不再起作用。

go get gopkg.in/DATA-DOG/go-sqlmock.v1

go: gopkg.in/DATA-DOG/go-sqlmock.v1@v1.3.3: go.mod has non-....v1 module path "github.com/DATA-DOG/go-sqlmock" at revision v1.3.3

go: error loading module requirements

如果要在不更新其依赖项的go get github.com/junegunn/fzf情况下使用devel包,请使用不带-u标志。

tcell存储库中有关于此问题的公开拉取请求:https :

//github.com/gdamore/tcell/pull/267

以上是 GO111MODULE = on(错误加载模块要求) 的全部内容, 来源链接: utcz.com/qa/420004.html

回到顶部