go遇到checksum mismatch的解决办法

错误详情 SECURITY ERROR This download does NOT match an earlier download recorded in go.sum. The bits may have been replaced on the origin server, or an

错误详情

SECURITY ERROR

This download does NOT match an earlier download recorded in go.sum.

The bits may have been replaced on the origin server, or an attacker may

have intercepted the download attempt.

解决办法

go clean -modcache
rm ./go.sum
go mod tidy

LICENSED UNDER CC BY-NC-SA 4.0
Comment