x/tools/cmd/goimports: line directive can cause file corruption #51119
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?goimports version v0.1.9..
Does this issue reproduce with the latest release?
Yes, also on playground.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run goimports on the following program.
What did you expect to see?
No change.
What did you see instead?
This can be reproduced here by clicking the format button.
The text was updated successfully, but these errors were encountered: