当我做go mod tidy时。我得到了以下错误:
go: github.com/stretchrcom/testify@v1.4.0: parsing go.mod: unexpected module path "github.com/stretchr/testify"发布于 2019-09-02 12:34:24
此错误是由于一个包在移到github.com/stretchr/testify之前进行了验证。
解决方案是在go.mod中添加以下行
replace github.com/stretchrcom/testify v1.4.0 => github.com/stretchr/testify v1.4.0
发布于 2019-10-10 01:07:07
如果这是一个直接依赖项,那么建议将正确的依赖项直接添加到go.mod文件中,即Github.com/担架/作证v1.4.0。
https://stackoverflow.com/questions/57757037
复制相似问题