1. go.sum Version Mismatch After Upgrading Go
Running the command go build reports an error.
Error message:
missing go.sum entry for module providing package golang.org/x/time/rate; to add
Solution:
Update go.sum before go build by running the command go mod tidy.
2. TLS Error
Running the command go mod download reports an error.
Error message:
fatal: unable to access 'https://github.com/agiledragon/gomonkey/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Solution:
Disable certificate verification by running export GIT_SSL_NO_VERIFY=1 or git config --global http.sslVerify false.
3. goproxy Does Not Support latest
Running the command go mod download reports an error.
Error message:
github.com/agiledragon/gomonkey: no matching versions for query "latest"
Solution:
Switch to a different goproxy proxy.
