-
Notifications
You must be signed in to change notification settings - Fork 279
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
Consider copying go1 branch to v1 #194
Comments
Sorry about that, I do want v1 to be accessible via modules. I did push go1 to v1 and tagged v1.10.1, but that doesn't seem to have fixed the issue. It looks like go build is treating go-i18n as a repo which has not opted in to go modules and pulling the v2.0.3 instead of the v1.10.1 tag. I am somewhat stumped as to how to fix this. Any ideas? |
I suspect this might have been caused by #176 which I thought would be safe. |
I think the only way I can make this easier is to add back v1 to the master branch but I would prefer not to do this because it is confusing for new users to see both code versions. This is similar to what the Kubernetes project does: kubernetes/client-go#551 It is unfortunate that this makes using v1 not work by default, and I wish there were a solution to it but I wasn't able to find one in my limited time searching (I would love to be proven wrong here). I would recommend directly fetching the desired version like this
Adding |
Ah, yes, you're right. This does indeed solve my slice of the problem. Thank you!
Agree that avoiding confusion is a good reason, but I'm also wondering what happens if/when |
Great! I am going to close this issue then.
Yeah, I originally removed the v2 subfolder but that then breaks any projects that aren't using any dependency management at all (e.g. #184 (comment)) so I added it back. |
It's hard to use v1 of this repository with go modules:
I believe this is a consequence of naming the v1 branch as
go1
instead ofv1
. I can replace with a particular commit from that branch:but this must be done by every client of my library that in turn uses
go-i18n
.If I'm understanding the way go modules work, I /think/ it would suffice to create a second branch called
v1
that is an exact copy ofgo1
. Would you consider investigating that to support go modules users still reliant on this version of your library?The text was updated successfully, but these errors were encountered: