Go modules: checksum mismatch

后端 未结 5 2519
深忆病人
深忆病人 2021-02-19 21:41

I recently started using modules in Go, but I frequently encounter issues where everything works fine on one machine, but a checksum mismatch is encountered when building the co

5条回答
  •  攒了一身酷
    2021-02-19 22:16

    You can run go clean -modcache and then go mod tidy which will re-download all deps with the correct checksum (this updates the pkg cache in $GOPATH/pkg/mod/).

    To update vendor/ folder run: go mod vendor.

提交回复
热议问题