
SECURITY ERROR This download does NOT match the one reported by the checksum server.
一、出现问题
# get https://proxy.golang.com.cn/github.com/bytedance/sonic/loader/@v/v0.1.0.mod
# get https://proxy.golang.com.cn/github.com/bytedance/sonic/loader/@v/v0.1.0.mod: 200 OK (0.718s)
go: github.com/bytedance/sonic@v1.11.5 requires
github.com/bytedance/sonic/loader@v0.1.0: verifying go.mod: checksum mismatch
downloaded: h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
sum.golang.org: h1:UmRT+IRTGKz/DAkzcEGzyVqQFJ7H9BqwBO3pm9H/+HY=
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'.
二、解决方法
go env -w GOSUMDB=off
go env -w GOSUMDB=GOSUMDB="sum.golang.org"
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 Eternal Night
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果