Go modules: checksum mismatch

后端 未结 5 2573
深忆病人
深忆病人 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:22

    Which version of Go are you using? There's a good chance you're running into the aftermath of the 1.11.2 -> 1.11.4:

    • https://github.com/golang/go/issues/27093
    • https://github.com/golang/go/issues/27925
    • https://github.com/golang/go/issues/29278

    Which still isn't completely resolved. Remember that go mod is still in development, so things like this will probably happen up and until 1.13.

    Be sure to read up on minor releases for Go, and how these things can happen: https://github.com/golang/go/wiki/MinorReleases

    TL;DR - Upgrade Go

提交回复
热议问题