-
Notifications
You must be signed in to change notification settings - Fork 18k
context: decide whether to keep Context.String format change #31620
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
Comments
Historically, the |
Answered with more detail in a direct message, but to summarize: my findings show very few such tests. It's also worth pointing out that there is no |
I'm also curious the extent of the test failures. Few options:
I'd like to do (1) if possible, but (2) is an option if we need it. I suppose option (3) is just fix all the tests, but that's likely more work for us & users if the breakage is widespread. |
So far I've only seen one failure and it was obviously brittle. I'm inclined to do nothing so far, but we'll see if more pop up. |
Let's leave this open through at least the beta, but I'm completely OK with the format change. If there are no serious complaints, keep it. |
Very few tests affected, and any affected tests are clearly brittle. I think we should keep the change. |
CL 169080 was made with the goal of making
context
no longer importfmt
, which was one of the steps towards resolving #30440. The current implementation resulted in acontext.Context.(fmt.Stringer)
formatting change.With Go 1.12.4:
With Go tip (e40dffe):
This was brought up in a code review comment and Brad said "let's revisit this".
This issue is about making that decision for 1.13. /cc @bradfitz
If I remember correctly,
fmt.Stringer
formatting is meant for human consumption only and is therefore not guaranteed to be stable across Go releases. But I'm not 100% sure what our policy is. The closest thing I could find now was #21485 (comment), but it was pretty specific totime.Time.String
method. Is stability offmt.Stringer
output across Go 1.x releases documented anywhere, or should it be? /cc @dsnet @ianlancetaylorThat means test should not depend on it, but if they do, they need to be ready to be updated. Once a decision here is made, it'll be possible to know how those tests should be updated for 1.13.
The text was updated successfully, but these errors were encountered: