cache icon indicating copy to clipboard operation
cache copied to clipboard

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

Open Jim-Lambert-Bose opened this issue 5 years ago • 2 comments

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.

Jim-Lambert-Bose avatar May 22 '19 14:05 Jim-Lambert-Bose

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

eabz avatar Jun 21 '19 17:06 eabz

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])

PFadel avatar Mar 25 '21 15:03 PFadel