-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
go/ast: SortImports does not change the (*ast.File).Imports field #69694
Comments
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
Change https://go.dev/cl/616340 mentions this issue: |
mateusz834
changed the title
go/ast: SortImports does change the (*ast.File).Imports field
go/ast: SortImports does not change the (*ast.File).Imports field
Sep 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproducer:
Currently
ast.SortImports
only updates thef.Decls[0].(*ast.GenDecl)
, thef.Imports
field is untouched.CC @griesemer
The text was updated successfully, but these errors were encountered: