项目创建使用go的版本是1.12,后来升级到1.13版本后,启动mirco项目会报以下错误:
go: downloading github.com/lucas-clemente/quic-go v0.12.0
go: downloading golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: downloading golang.org/x/sys v0.0.0-20190812073006-9eafafc0a87e
verifying github.com/lucas-clemente/quic-go@v0.12.0: checksum mismatch
downloaded: h1:dYHUyB50gEQlK3KqytmNySzuyzAcaQ3iuI2ZReAfVrE=
sum.golang.org: h1:TRbvZ6F++sofeGbh+Z2IIyIOhl8KyGnYuA06g2yrHdI=
SECURITY ERROR
This download does NOT match the one reported by the checksum server.
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'.
怀疑是升级到1.13版本导致的。
我的解决方法是:
- 修改go mod文件的版本号为1.13
- 在mod文件里添加依赖
github.com/lucas-clemente/quic-go v0.13.0
即可解决,希望能帮到在折腾go路上的小伙伴~~
网友评论