cache
cache copied to clipboard
Got "ambiguous import: found github.com/ugorji/go/codec in multiple modules"
This defect is explained in these two issues:
- https://github.com/gin-gonic/gin/issues/1673
- https://github.com/golang/go/issues/29332#issuecomment-448669442
Gin has fixed it's module dep, but this cache middleware is still referencing the problem ugorji release tag. This forces anyone that wants to use go modules with this middleware to fork and fix the mods themselves.
I am having the same issue with mods on go 1.12. Forked and updated seems to works fine: https://github.com/eabz/cache
I am having this error now. go version go1.13.5 linux/amd64
build github.com/stone-payments/go_agent_api: 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/fadel/go/pkg/mod/github.com/ugorji/[email protected]/codec)
github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f (/home/fadel/go/pkg/mod/github.com/ugorji/go/[email protected])