gin-contrib / gin-contrib/cache

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

Open
#53 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
456
Forks
100
Avg merge
2h 16m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the cache middleware's Go module dependency declarations and the referenced ugorji release. Reproduce the ambiguous-import error with Go modules, update the dependency reference, and verify that the middleware no longer requires a fork to build.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.