-
Notifications
You must be signed in to change notification settings - Fork 56
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
Review incorrect go module usage #43
Comments
CC: @manaspaldhe12 |
There is some unclear documentation on the go site in regards to the placement of go.mod. This page seems to present conflicting information:
Perhaps you can post the go.mod for the project that raised the error? |
no feedback. closing for now. reopen if needed. |
Hi,
I ran into the following issue using this client with go and modules.
This doesn't happen if you're directly referencing this client, but can if multiple libraries are referencing the client in different ways and you're trying to use both libraries at once.
I don't think the change to add the go.mod file was correct: https://github.com/cactus/go-statsd-client/blob/master/statsd/go.mod
With go.mod, since you're on tag v3, the path of everything inside there should be
github.com/cactus/go-statsd-client/statsd/v3
instead ofgithub.com/cactus/go-statsd-client/statsd
. That includes the go.mod file as well.It may be best to either add
v3
to the path in the module file, or remove the go.mod file.The text was updated successfully, but these errors were encountered: