-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix map_kind with empty rules (#1441)
* fix: language/go: fileContainsGoBinary() doesn't interprete correctly KindMap With this directive `# gazelle:map_kind OLD NEW NEW_LOAD`, c.KindMap should be equal: "OLD": { FromKind: "OLD", KindName: "NEW", KindLoad: "NEW_LOAD", } `fileContainsGoBinary()` should search directly the mapping for the `go_binary` kind rule. Issue #1440 * fix: map_kind should also be applied on empty rules If `map_kind` is not applied on empty rules returned by GenerateRules(), all mapped rules can't be removed from the BUILD file. Close #1440
- Loading branch information
1 parent
de70ddd
commit 8522970
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters