2019-07-04 17:07
浏览 368


I have a rest api I built in Go with gin that has been working for months now on my local machine running 1.12.1. I decided it was going to a docker deploy so I started building with 1.12.6 when I started see errors during module retrieval. I went back to my local machine, ran running 1.12.1 and ran go clean -modcache, now the error is there as well. I've tried regenerating multiple times even editing the go.sum file to different versions of gofight but I'm lost and run out of ideas.

The output w/error:

go: go.mod has post-v2 module path "" at revision v2.0.0
go: error loading module requirements


module go-hybrid-alert

go 1.12

require ( v0.37.0 v3.6.0+incompatible v2.0.0+incompatible v1.5.0 v1.0.0 // indirect v1.0.0 // indirect v0.0.0-20190129040759-c8489ed3251e // indirect v0.0.0-20190216100112-ca1084e5d5a2 v0.0.0-20190301062529-5545eab6dad3 // indirect v1.3.0 v6.15.2+incompatible v0.2.3 // indirect v1.2.0 v1.2.4 // indirect v0.0.0-20181003180210-9a9a3d47fba3 // indirect v0.0.0-20190130132859-37c80f76a0da // indirect v0.0.7 // indirect v1.1.2 v0.0.0-20120816061221-3af4cd4741ca // indirect v0.0.0-20180810133444-97ee4a9ee6ea // indirect v0.0.0-20190316083543-95c34d148dff // indirect v0.0.0-20190313024323-a1f597ede03a v0.0.0-20190313220215-9f648a60d977 v0.2.0 v3.2.0 // indirect v8.18.2 // indirect

go.sum (the line for the module in question, posting the whole thing exceeds SO post length) v2.0.0+incompatible/go.mod h1:H/tvof1oZHnZdlBd+AeODZGkk1C+D2na0NXr0iXuZHA=

I've also tried adjusting the go 1.12 statement in go.mod for the specific subversions I'm attempting to build with but that had no effect.

What does this error mean? How can I fix it?

1条回答 默认 最新

相关推荐 更多相似问题