Go modules: checksum mismatch

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

    I was having the same problem using 1.12.8 and no cache cleaning would help. Turns out I am still locked in the middle of GOPATH and the Mod world. I found a flag in another post (How do I migrate from Dep to Go Modules) that did the trick for me.

    go run -mod=vendor main.go
    

提交回复
热议问题