Go Mod Tidy: Überprüfung von gorm.io/[email protected]: Prüfsumme stimmt nicht überein

Bei der Ausführung im Projekt tritt folgender Fehler auf go mod tidy:

$ go mod tidy
go: downloading gorm.io/gorm v1.25.0
verifying gorm.io/[email protected]: 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'.

Lösung:
Im Projektstammverzeichnis ausführen:

rm go.sum && go mod tidy

Supongo que te gusta

Origin blog.csdn.net/weixin_42492572/article/details/130626717
Recomendado
Clasificación