-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Deprecation of DialContext
and Dial
is not mentioned in 1.63.0 release notes
#7090
Comments
DialContext
and Dial
is not mentioned in 1.63.0 release notes
I don't think it was a good idea to deprecate There are 178,000 open source imports of grpc and countless more inside proprietary code bases and basically all of them are using What I would rather see is continued support for Dial with perhaps a doc comment on why a user might prefer to use |
https://go.dev/wiki/Deprecated
This all sounds WAI. One thing we did get wrong according to this recommendation was to release |
Yes, there will be a linter warning if you run a linter that complains about your use of deprecated features. You should have a way to silence linters that you disagree with. That's a tooling problem, not a problem with our decision to deprecate this API. New users need to be funneled to |
Seems like this was only fixed in 1.63 but not in the new 1.64.0? Was the issue that was fixed that it was undocumented, and now that it was noted in the release note the problem is solved? IMO that is not the issue, the issue is the deprecation to begin with. As #7090 (comment) notes, this will require 178,000 usages to be changed across the ecosystem. If this issue was supposed to be scope only to "undocumented" and not "do not deprecate it" let me know and I can open a new issue or PR. |
@howardjohn, the issue was only about missing docs. You should create a new one (or find an existing one) if you want to ask for "undeprecating" the deprecated API. |
Could the maintainer team as least suggest some replacements for usages of I'm not seeing a clear or elegant path to replacing that functionality with |
Have you seen https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md already? You have a couple options for what you are asking for:
Lines 266 to 290 in 24e9024
|
Ignoring the linter until we migrate to NewClient(). See grpc/grpc-go#7090 (comment) Signed-off-by: Mauricio Vásquez <[email protected]>
Ignoring the linter until we migrate to NewClient(). See grpc/grpc-go#7090 (comment) Signed-off-by: Mauricio Vásquez <[email protected]>
I see |
@frbvianna please see #5496 (which was closed by the original reporter and unnoticed). If you have any feedback on the API it would be appreciated. Realistically it's unlikely we can change it now, except possibly with a very prolonged "deprecated" migration period. |
My bad on that one 🙈 I can't remember why I closed that. Just had a skim of the comments and I'm in favour of this change and there's finally a migration plan. It's a shame my issue being closed has meant some functionality got missed but hopefully that can be added with time. |
DialContext
andClientConn.Dial
were deprecated by #7029 and it is not mentioned in 1.63.0 release notes.The text was updated successfully, but these errors were encountered: