Closed savaki closed 6 years ago
I think the spec is clear on where go.mod should reside. If it's different, please let me know.
Clarifying my last response:
The module spec says that you can have multiple modules per repository, and just put the go.mod file at the package level (not top level). I do not see anything to show that this is incorrect. Given that, I cannot accept this PR.
Please add comments, links, snippets, etc defending your position if you disagree, and I can re-open and review.
I believe the go.mod file that you have at the child level is causing issue when go modules is used outside the GOPATH. Here's what happens when I attempt to use gin-gonic:
I think what's happening is that it's considering the go.mod file you put in the codec directory a separate module that's in conflict with github.com/ugorji/go/codec.