当前位置:   article > 正文

go mod tidy报错:verifying gorm.io/gorm@v1.25.0: checksum mismatch_security error this download does not match an ear

security error this download does not match an earlier download recorded in

在项目中执行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'.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

解决方式:
在项目根目录执行:

rm go.sum && go mod tidy
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/211739
推荐阅读
  

闽ICP备14008679号