go mod module declares its path as: gtihub.com/xxx-xx but was required as:xx-xx
现象#go mod tidy........go: go.mod/test/e2e/kubectl importsgithub.com/googleapis/gnostic/OpenAPIv2: github.com/googleapis/gnostic@v0.6.9: parsing go.mod:module declares its path as: github.com/google/gn
·
现象
#go mod tidy
....
....
go: go.mod/test/e2e/kubectl imports
github.com/googleapis/gnostic/OpenAPIv2: github.com/googleapis/gnostic@v0.6.9: parsing go.mod
:
module declares its path as: github.com/google/gnostic
but was required as: github.com/googleapis/gnostic
错误意思是模块将其路径声明为:github.com/google/gnostic 但被要求:github.com/googleapis/gnostic
解决办法:
在你当前的项目下的go.mod文件中加入
replace github.com/googleapis/gnostic => github.com/google/gnostic v0.6.9
格式为:
replace module declares its path as:(后边那部分) => but was required as:(后边那部分)
更多推荐



所有评论(0)