duanfeng3879 2019-03-30 09:47
浏览 2137
已采纳

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

go get -u github.com/junegunn/fzf works fine but want to test the development branch like so:

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

Not sure what is going on here? get the same result if I do

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

  • 写回答

1条回答 默认 最新

  • donglu5612 2019-03-30 17:20
    关注

    Package github.com/gdamore/tcell which is required by fzf has gopkg.in/DATA-DOG/go-sqlmock.v1 dependency. In version 1.3.3 of go-sqlmock they started to use go modules without version suffix and now explicit indication of the version no more working.

    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
    

    If you want to work on the devel package without updating its dependencies use go get github.com/junegunn/fzf without -u flag.

    There is open pull request in tcell repository about this issue: https://github.com/gdamore/tcell/pull/267

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题