You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be golang/tools@864069c. Giving the import an explicit name will keep it from being removed but it's a bad user experience. I'll roll back while I think about it.
What version of Go are you using (
go version
)?goimports
from 34b416b.Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
See: https://github.com/dcelasun/importbug
What did you expect to see?
Successfully build the program.
What did you see instead?
$ go build # github.com/dcelasun/importbug ./main.go:8:14: undefined: fb
because goimports removed the
github.com/dcelasun/importbug/go-foobar
import.The text was updated successfully, but these errors were encountered: