-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/goimports: missing import alias #30035
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
This was an intentional reversion to prior behavior: #29556 |
#29556 is likely to be relevant, I tried with different imports:
and got |
This was an intentional change. |
@ianthehat |
What version of Go are you using (
go version
)?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?
After
go get -u golang.org/x/tools/cmd/goimports
.Having a
file.go
withI'm running
goimports -w file.go
.What did you expect to see?
What did you see instead?
Not long ago
goimports
started adding aliases in case package name differs from import path, with recent update that seem to be reverted.The text was updated successfully, but these errors were encountered: