-
Notifications
You must be signed in to change notification settings - Fork 31
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
Drop dependency on subpackage #123
Conversation
3d377b6
to
b89d8fe
Compare
Thanks @DavidHuie for the PR. We'll get one of the Go devs to take a look, but LGTM |
@DavidHuie I took a look at this PR. I was trying to reproduce the issue you mentioned above through the following steps
Then I added content to
To make sure I don't miss anything
Then I ran the tidy command to add packages
No errors were reported And here is is the contents of
From the steps I outlined above, I haven't been successful able to reproduce your issue. I might have missed something though. If you don't mind can you please help me reproduce it, that way I can be able to review this PR properly and make sure it resolve the issue. |
I think this needs to be reopened though I think the OP did not mention that this error happens when you have other dependencies such as https://github.com/spf13/viper. (Also seems etcd, and gin-gonic would also be in conflict). Here is a link to the codec packages solution. DataDog forked viper and made this exact change in a commit, here is what they did: Thanks for taking a look. |
Thanks @xshyne88 - we'll take another look. I've opened an issue for now to track this as we're soon embarking on another tranche of work on this library. Out of interest, are you seeing exactly the same problem or something different but perhaps related? |
Here is my error trace:
I think it's the same problem. I spent some time trying to debug this, this morning, as the library and my tests were working fine on Friday. As soon as I pulled the repo, and the viper dependency was added this started happening. That's about as much context as I have. |
This project had a dependency on
github.com/ugorji/go/codec
which is a subpackage of the Go modules projectgithub.com/ugorji/go
. This causes this error when trying to use this package in other Go modules projects: