I have a direct dependency in my go.mod file that used to be github.com/imdario/mergo
but the creators changed the name to dario.cat/mergo. I updated this dependency to the correct name in the direct dependency in my go.mod file, however, I also have an indirect dependency that is
github.com/imdario/mergo
. So, to update this dependency to the new name I used a replace directive. But, I’m getting the error dario.cat/mergo@v1.0.0 use for two different module paths (dario.cat/mergo and github.com/imdario/mergo)
. How do I resolve this error since this module path has to be included in both the direct and indirect dependencies?