The answer is apparently https://github.com/gin-gonic/gin/issues/2039#issuecomment-527997733
Add this to your go.mod file: > replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go > v0.0.0-20190204201341-e444a5086c43 On Tuesday, September 10, 2019 at 2:48:25 PM UTC+2, Darko Luketic wrote: > > What used to work pre go 1.13 now doesn't work anymore > > go mod is one big mess no one needs and complicates everything > I'm now getting ambiguity. How do I resolve it? > Nothing compiles anymore > > ✘ darko@wrk ~/go/src/git.icod.de/dalu/socialthing master ●✚ go > mod tidy > go: extracting github.com/ugorji/go/codec > v0.0.0-20181204163529-d75b2dcb6bc8 > git.icod.de/dalu/socialthing/cmd imports > github.com/gin-gonic/gin/binding imports > github.com/ugorji/go/codec: ambiguous import: found > github.com/ugorji/go/codec in multiple modules: > github.com/ugorji/go v1.1.4 (/home/darko/go/pkg/mod/ > github.com/ugorji/go@v1.1.4/codec) > github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 > (/home/darko/go/pkg/mod/ > github.com/ugorji/go/codec@v0.0.0-20181204163529-d75b2dcb6bc8) > > > What does that even mean? > Why? > How do I fix this? > How do I permanently disable go mod? > I don't want it, I don't need it. > > build git.icod.de/dalu/socialthing: cannot load github.com/ugorji/go/codec: > ambiguous import: found github.com/ugorji/go/codec in multiple modules: > github.com/ugorji/go v1.1.4 (/home/darko/go/pkg/mod/ > github.com/ugorji/go@v1.1.4/codec) > github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 > (/home/darko/go/pkg/mod/ > github.com/ugorji/go/codec@v0.0.0-20181204163529-d75b2dcb6bc8) > > /wrist > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3f90b8db-502b-4eca-997e-bf9202c21c46%40googlegroups.com.