Skip to content

x/tools/cmd/goimports: removes necessary imports with certain characters #29044

@mattmoor

Description

@mattmoor

Using goimports at release-branch.go1.10, I see it dropping necessary imports when they have - and are not aliased,

You can see it in this removal with a hyphen:
https://github.com/knative/eventing/pull/653/files#diff-abdff22f055e921908e64cdb584fa75cL25

... and this removal with a dot:
https://github.com/knative/docs/pull/611/files#diff-06a9a211281c9004b5638fc5207899d8L32

I can't use HEAD or 1.11 because of: #29041

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions