Skip to content

x/tools/cmd/goimports: removes imports ending in ".git" or whatever vcs #8655

@gopherbot

Description

@gopherbot

by xofyarg:

What does 'go version' print?

go version go1.3.1 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. use a custom git repo: foo.com/bar.git
2. import "foo.com/bar.git" and add some code using it, say bar.Do()
3. call goimports

What happened?

it removes the import line above

What should have happened instead?

keep the import line

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions