bug-missing GOSUMDB

 
问题描述:
  • D:\gopj>go mod tidy go: finding module for package go.uber.org/zap go: finding module for package github.com/valyala/fasthttp go: downloading go.uber.org/zap v1.26.0 go: downloading github.com/valyala/fasthttp v1.52.0 go: githun.com/bigwhite/hellomodule imports github.com/valyala/fasthttp: github.com/valyala/fasthttp@v1.52.0: verifying module: missing GOSUMDB go: githun.com/bigwhite/hellomodule imports go.uber.org/zap: go.uber.org/zap@v1.26.0: verifying module: missing GOSUMDB D:\gopj>type go.mod module githun.com/bigwhite/hellomodule go 1.22.0 包似乎并没有下载成功
 
错误原因:
  • Go 在尝试验证模块的有效性时无法连接到 Go's checksum database。
解决方案:
  • go env -w GONOSUMDB="*"

posted on 2024-02-15 21:06  Love&Share  阅读(248)  评论(0编辑  收藏  举报

导航