跳转至
本文阅读量

FAQ

1. 编译时报 NOT match an earlier download recorded in go.sum

go: downloading github.com/liquidweb/liquidweb-cli v0.7.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576
go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.6
go: downloading github.com/google/s2a-go v0.1.8
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0
verifying github.com/liquidweb/liquidweb-cli@v0.7.0: checksum mismatch
        downloaded: h1:H+tBJWNa/sFSUf5UIc7pRcWkZF8lYcdYOUGOwCzz/Fg=
        go.sum:     h1:7j1r1U0MZa1TXiWo3IMU5V1YQwnBHMVxU+xLsgDcu6Q=

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 -rf go.sum
go clean -modcache
go mod tidy