Skip to content

gazelle -proto=default mysteriously removing go srcs and rules #907

@ixdy

Description

@ixdy

In kubernetes/test-infra, I updated our rules_go and gazelle dependencies to 0cd983e, and then updated all of our BUILD files, first with -proto=legacy, then without (separating this into two commits).

When I ran gazelle -mode=fix without -proto=legacy, it did weird things to testgrid/config/BUILD (see commit), removing all of the go sources and go_binary rule, but leaving an invalid go_test rule.

I have no idea why it did this, and whether it's something weird we're doing or a bug in gazelle.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions