Skip to content

x/tools/cmd/goimports: support vendor directories #13644

@cespare

Description

@cespare

#12278 was originally about this, but was changed to be about go/build.

go/build and x/tools/go/loader now know about vendor directories, but there is more work to do to make goimports add the correct paths.

When working on $GOPATH/src/a that vendors b, instead of adding the (disallowed) import "a/vendor/b", goimports should add "b".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions