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
Most of goimports' code is in x/tools/imports. The bad change was rolled back in golang/tools@a28dfb4. If you're still having problems, please file a new bug with more detail, ideally a repro case.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
go get -u -v golang.org/x/tools/cmd/goimports
As of writing, goimports are on this commit: golang/tools@4ca4995
Regression reproducer
Please, see a reproducer repo: https://github.com/VojtechVitek/goimports-bug
Issue
Seems like latest goimports started removing completely valid import paths when package name doesn't match the pkg's directory name.
The text was updated successfully, but these errors were encountered: