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
Move library implementation into v2 subdirectory #124
Conversation
That seems to be how go modules work for versions greater than 1. See this stack overlow answer https://stackoverflow.com/a/53380636. That's also something hinted in https://blog.golang.org/migrating-to-go-modules but not explained in details.
@e-max I didn't move |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hmm, do I also have to move the |
Ok, I found https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher, emphasis is mine:
|
I had this impression too, but just recently we had a couple issues submitted in this repo by people who use |
Does that mean that you would like to continue maintaining it as part of |
c39f305
to
163dfa0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@e-max So, I moved |
So, after being confronted to the following error from the
go mod
command line tool, I see that we didn't do the migration work required when moving from no-modules to go modules. The error:I did a bit of research, what I now understand is that go modules for versions greater than 1 require to have the source code in a
vN
subdirectory, whereN
is the major version.Links:
I guess that this PR will break compatibility for old versions of golang that don't support modules.