-
Notifications
You must be signed in to change notification settings - Fork 18k
go/format: Source output is not idempotent #26930
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
Thanks - will take a look as soon as I can. |
Change https://golang.org/cl/129097 mentions this issue: |
I don't believe this is a release blocker. For one, there are other situations where gofmt is not idempotent, and they have been around for a long time. That is not to mean that we don't care; it just means that we have been able to live with it for now. We do want to fix these but it doesn't warrant blocking a release. In this case the problem arises only (as far as I can tell) if the (first) entry Marking for 1.12 until further evidence that this is more urgent. |
This is a regression that is breaking some tests. It's also a result of a change submitted 4 days ago. I could fix the broken tests, or we could revert the change causing this. But I believe some action should be made for Go1.11. |
The change that was submitted 4 days ago also fixed a regression. Let's look at the broken tests (in person). And let's keep thinking about a possible fix for this. |
Change https://golang.org/cl/129255 mentions this issue: |
Change https://golang.org/cl/129256 mentions this issue: |
In previous versions of Go including 1.10, an empty line would break the alignment of elements within an expression list. golang.org/cl/104755 changed the heuristic, with the side effect that empty lines no longer broke the table alignment. A prior fix (https://go-review.googlesource.com/c/go/+/125260, reverted) introduced another regression (#26930) which this change doesn't produce. Added test cases for both #26352 and #26930. Fixes #26352. Updates #26930. Change-Id: I371f48e6f3620ebbab53f2128ec5e58bcd4a62f1 Reviewed-on: https://go-review.googlesource.com/129256 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Alan Donovan <adonovan@google.com>
Consider the following:
Running
format.Source
on the output of itself should produce no changes. However, it does. Bisect traces the regression to https://go-review.googlesource.com/125260.\cc @mvdan @griesemer
The text was updated successfully, but these errors were encountered: