-
Notifications
You must be signed in to change notification settings - Fork 602
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
Avoid golint failures: BlockHtml #489
Comments
Also Line 186 in f1f45ab
|
Do you guys mind if I pick this ticket up? To be clear, you want BlockHtml and RawHtmlTag to be renamed to BlockHTML and RawHTMLTag, and then create the methods BlockHtml and RawHtmlTag that point to the renamed functions, correct? |
Also add methods BlockHtml and RawHtmlTag to point to the renamed methods for backwards compatibility
@crazcalm I think this is more complicated than this. Actually I hoped for more comments on this from the maintainers. Here are my points:
To sum it up, I opened this ticket hoping to resolve a part of golint failure issue in Kubernetes but after doing some deep dive of this library, found it's much more complicated than this. |
Yeah, there was a bit of jerk reaction on my side... First, I misapplied the v2 tag. The issue is about public names in master (i.e. v1), and I thought that would be something in v2. And second, I didn't pay attention that even if it's v2, it's already released and we can't change the public names any more. So if we still have some lint issues in v2, we'll have to live with them for quite a while. So there's really no way to completely resolve this issue -- the linter-offending names must stay. The best we can do is to introduce the fixed names, and mark the old ones as deprecated. Having said that, I don't think renaming things in v1 is worth the effort at all. A large part of motivation for v2 was cleaning up the names of exported identifiers. So the right way to avoid linting issues is to migrate to v2. (But I suspect that v2 is not completely free of lint issues either, because I wasn't using a linter while working on it...)
v2 is already released, so we have to care about compatibility there as well. What public identifiers were not fixed, will have to stay until v3. But we're not going to merge with master. The plan prior to widespread dependency management tool usage was to keep master as v1, and have v2 branch as "master" of v2. So far it seems like we should stick to this plan. |
@rtfb thanks for the explanation. Now I think it's clear to me. So as I understand, we will be creating/merging PRs to the V2 branch and not master. And for my purpose of fixing golint failures in Kubernetes, I need to check which version is being used there and if it's V1, make proposal to migration to V2. |
Or if we are not going to change V2, shall we close this issue? As I don't see a V3 branch as of now, I guess V3 will be all linted when it will be released. |
blackfriday/html.go
Line 241 in f1f45ab
Hi, I think we should rename
BlockHtml
it toBlockHTML
and create new functionBlockHtml
pointing toBlockHTML
to avoid golint failures maintaining compatibility.The text was updated successfully, but these errors were encountered: