Skip to content

x/tools/cmd/goimports: adds circular imports #30663

Closed
@stamblerre

Description

@stamblerre

goimports will add an import for the package you are currently in if you make a mistake.

Repro:

Open a file in golang.org/x/tools/internal/lsp/source and replace "View" with "source.View". An import for golang.org/x/tools/internal/lsp/source will be added by goimports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions