赞
踩
在项目中执行go mod tidy
出现以下报错:
$ go mod tidy
go: downloading gorm.io/gorm v1.25.0
verifying gorm.io/gorm@v1.25.0: checksum mismatch
downloaded: h1:+KtYtb2roDz14EQe4bla8CbQlmb9dN3VejSai3lprfU=
go.sum: h1:Gdj8DFuEI4XSM++fNJtRqejWu11/ZtgUXOedl8I5cXE=
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'.
解决方式:
在项目根目录执行:
rm go.sum && go mod tidy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。