【发布时间】:2019-10-29 06:28:26
【问题描述】:
我想导入一个 Go 模块,它的 go.mod 中有以下内容:
> grep plist go.mod
github.com/DHowett/go-plist v0.0.0-20180609054337-500bd5b9081b
howett.net/plist v0.0.0-20181124034731-591f970eefbb // indirect
但是,如果我尝试 go get 那个包,我会收到以下错误消息:
go: github.com/DHowett/go-plist@v0.0.0-20181124034731-591f970eefbb: parsing go.mod: unexpected module path "howett.net/plist"
go get: error loading module requirements
如果我只是尝试go get github.com/DHowett/go-plist,我也会收到此错误:
> go get github.com/DHowett/go-plist
go: finding github.com/DHowett/go-plist latest
go: github.com/DHowett/go-plist@v0.0.0-20181124034731-591f970eefbb: parsing go.mod: unexpected module path "howett.net/plist"
go: error loading module requirements
如何修复此错误以便导入该模块?
【问题讨论】:
标签: go go-modules