gin-contrib / cache

Gin middleware/handler to enable Cache
https://gin-gonic.github.io/gin
MIT License
364 stars 95 forks source link

Got "ambiguous import: found github.com/ugorji/go/codec in multiple modules" #53

Open Jim-Lambert-Bose opened 5 years ago

Jim-Lambert-Bose commented 5 years ago

This defect is explained in these two issues:

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.

eabz commented 5 years ago

I am having the same issue with mods on go 1.12. Forked and updated seems to works fine: https://github.com/eabz/cache

PFadel commented 3 years ago

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/go@v1.1.4/codec)
    github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f (/home/fadel/go/pkg/mod/github.com/ugorji/go/codec@v0.0.0-20181022190402-e5e69e061d4f)