Open LOZORD opened 6 years ago
At Gophercon, @alaska started work on this I believe. @clairew also expressed interest in fixing this, too.
@LOZORD Thanks for issuing this - will take a look at what I can do!
Change https://golang.org/cl/77530 mentions this issue: refactor/eg: Fix all imports after modifying files.
Change https://golang.org/cl/116222 mentions this issue: refactor/eg: Fix all imports after modifying files.
tl;dr: While new imports are correctly added by the refactoring, imports that are made obsolete still exist unnecessarily (and therefore break compilation). We need to run something like
goimports
after performing the eg transformation.What version of Go are you using (
go version
)?go version go1.8.1 darwin/amd64
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
What did you expect to see?
The
import
section for the result should only containerrors
.What did you see instead?
The
import
section containederrors
, but alsofmt
unnecessarily.