golang 报错
1.checksum mismatch
verifying github.com/tjfoc/gmsm@v1.3.0: checksum mismatch
downloaded: h1:i7c6Za/IlgBvnGxYpfD7L3TGuaS+v6oGcgq+J9/ecEA=
go.sum: h1:qhgkrZru95jFP9NbVPknJvc9vgkMXhOEzkOASKdc0oQ=
go clean -modcache
rm go.sum
go mod tidy
2.github fork error:
module declares its path as: github.com/xxx1/kgo
but was required as: github.com/xxx2/kgo
进入到项目里
go mod edit -replace="github.com/xxx1/kgo@v1.4.0=github.com/xxx2/kgo@v1.4.0" # 把别人的仓库名替换成自己的