其他分享
首页 > 其他分享> > go mod报错

go mod报错

作者:互联网

错误如下:

go: downloading github.com/flosch/pongo2/v4 v4.0.0
verifying github.com/flosch/pongo2/v4@v4.0.0: checksum mismatch
downloaded: h1:89EuG/yHG6NE7KFmeg5GwnHYiiPQQXA1SGr12O9umVE=
go.sum:     h1:6eZe8NSNxtTTGwXgJqqXiiLEDAj7CvkwiYrZFQRW6cQ=

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.

For more information, see 'go help module-auth'.

执行下面命令

go clean -modcache
go mod tidy

若不奏效,可删除文件go.mod,go.sum,执行go mod init,并重新执行以上命令

标签:sum,h1,download,报错,go,flosch,mod
来源: https://www.cnblogs.com/root-123/p/16574896.html