我正在努力学习如何创建一个Go微服务的教程,但是每当我运行go mod整齐时,我总是会收到这个错误。
$ go mod tidy
go: finding module for package github.com/velotiotech/watermark-service/internal
go: finding module for package github.com/lithammer/shortuuid/v3
go: finding module for package github.com/go-kit/kit/log
go: downloading github.com/go-kit/kit v0.12.0
go: downloading github.com/lithammer/shortuuid/v3 v3.0.7
go: downloading github.com/velotiotech/watermark-service v0.0.0-20200604060255-debbccd8157b
github.com/chococascante/focus-archery-api/pkg imports
github.com/go-kit/kit/log: github.com/go-kit/kit@v0.12.0: verifying module: github.com/go-kit/kit@v0.12.0: initializing sumdb.Client: reading tree note: malformed note
note:
github.com/chococascante/focus-archery-api/pkg imports
github.com/lithammer/shortuuid/v3: github.com/lithammer/shortuuid/v3@v3.0.7: verifying module: github.com/lithammer/shortuuid/v3@v3.0.7: initializing sumdb.Client: reading tree note: malformed note
note:
github.com/chococascante/focus-archery-api/pkg imports
github.com/velotiotech/watermark-service/internal: github.com/velotiotech/watermark-service@v0.0.0-20200604060255-debbccd8157b: verifying module: github.com/velotiotech/watermark-service@v0.0.0-20200604060255-debbccd8157b: initializing sumdb.Client: reading tree note: malformed note
note:发布于 2022-01-09 06:05:03
尝试禁用完整性检查。或者尝试将sum.golang.org更改为proxy.golang.org。
go env -w GOSUMDB=off
https://stackoverflow.com/questions/70634398
复制相似问题