-
Notifications
You must be signed in to change notification settings - Fork 281
remove v2 #179
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
remove v2 #179
Conversation
Codecov Report
@@ Coverage Diff @@
## master #179 +/- ##
=======================================
Coverage 82.33% 82.33%
=======================================
Files 14 14
Lines 1285 1285
=======================================
Hits 1058 1058
Misses 161 161
Partials 66 66
Continue to review full report at Codecov.
|
@@ -1,4 +1,4 @@ | |||
module github.com/nicksnyder/go-i18n/v2 | |||
module github.com/nicksnyder/go-i18n |
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.
I can’t merge this because the v2 suffix is necessary to avoid breaking backward compatibility with v1. Can you explain the problem you have that motivated this PR?
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.
I got some errors when go build my program.
use go-i18n in the vendor directory
The documentation link in the readme is also not found
https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n
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.
What are you using to vendor? What version of Go are you using?
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.
go version 1.10
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.
Can you upgrade to 1.10.3+? I think that might solve your problem.
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.
And what are you using to generate your vendor folder? |
I use go vendor to manage packages
|
go-i18n v2 is configured to work with Go modules as documented here: https://github.com/golang/go/wiki/Modules Note that Go modules works best with 1.10.3+, so the easiest fix is probably to upgrade your version of go to at least 1.11. If helpful, you can checkout the v2.0.0 tag when the v2 code was in a v2 subfolder. I am aware that some of the go doc links are broken, and am waiting for a resolution here: golang/gddo#567 (comment) I am going to close this PR because ultimately this is something that you will need to fix on your end, but I hope the above suggestions are helpful and sorry for the inconvenience. |
ok, thanks |
I restored the v2 subdirectory for greater compatibility so you should be able to update to 2.0.2 |
No description provided.