【go】Error reporting and resolution

Dependency download failed checksum mismatch

> go get github.com/hibiken/asynqmon
go: downloading github.com/hibiken/asynqmon v0.7.2
go: github.com/hibiken/[email protected]: verifying module: checksum mismatch
        downloaded: h1:EfLRppj5GlklMPzdCjdonpXz/D23meW0Pk6NAtkOPhw=
        sum.golang.org: h1:YohWgTIPwtMyZ6khBDcVUz9BdSdQW2Dxn8SoxtbmjSg=

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'.

Solution: Set up Qiniu Cloud proxy
Insert image description here
GOPROXY=https://goproxy.cn,direct
Note: Other proxies will fail the verification!

Start error missing go.sum

go run startup error
Insert image description here
Solution: go mod tidy rearranges dependencies

Guess you like

Origin blog.csdn.net/qq_45859826/article/details/134399117