-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Import grouping vs internal #307
Comments
Note that this is a special case for the Go standard library only. |
Thanks for the report. I added logic to treat Indeed, std does contain some top-level internal packages, and they are still part of std, even if third party Go modules cannot import them directly. Will fix shortly. |
Thank you @mvdan; can we please have v0.6.1? 🙏🏻 |
I'll do a v0.7.0 just before Go 1.23 is out, syncing with cmd/gofmt as well. |
@mvdan very please 🙏🏻 |
When working on the code in https://github.com/golang/go, gofumpt insists on placing imports of packages with
internal/
prefix to a separate group. Here's an example:@ianlancetaylor mentioned that this is not how they want their code to be formatted.
If this is by design, please close.
The text was updated successfully, but these errors were encountered: