go mod tidy 报错:verifying ...: checksum mismatch

在执行go mod tiny的时候报错

verifying github.com/cihub/seelog@v0.0.0-20170130134532-f561c5e57575/go.mod: checksum mismatch
        downloaded: h1:vScKZAbbGEqcaDUm34qJI4cnTNW/l9di38kVNqd0e58=
        go.sum:     h1:9d6lWj8KzO/fd/NrVaLscBKmPigpZpn5YawRPw+e3Yo=

解决办法是清理一下mod缓存重新下载

go clean -modcache

:: 删了go.sum文件
del go.sum

go mod tidy
0%