Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go Mod Issue #318

Closed
1995parham opened this issue Sep 8, 2019 · 4 comments
Closed

Go Mod Issue #318

1995parham opened this issue Sep 8, 2019 · 4 comments

Comments

@1995parham
Copy link

I have got the following error by using the go module:

        github.com/ugorji/go/codec: ambiguous import: found github.com/ugorji/go/codec in multiple modules:
        github.com/ugorji/go v1.1.4 (/home/parham/Documents/Go/pkg/mod/github.com/ugorji/[email protected]/codec)
        github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 (/home/parham/Documents/Go/pkg/mod/github.com/ugorji/go/[email protected])

I think there is no need to have go.mod in the project root.

@sachinagada
Copy link

Try adding github.com/ugorji/go v1.1.7 to your go.mod file.

@dlaguerta
Copy link

Check out #319 -- I believe this circular dependency in /codec (relying on its root mod) causes this issue

@1995parham
Copy link
Author

1995parham commented Sep 13, 2019

@dlaguerta Yes I agree with you, and I think they must remove dependencies from go.mod that is on the project root.

@ugorji
Copy link
Owner

ugorji commented Sep 16, 2019

Please read #299

It's important to know the context and history, so you know what influenced the decision to make the committed fix. This also helps you make informed comments or offer informed changes.

I'm open to whatever is the best path moving forward, and am fully open to better ways forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants