Skip to content

Commit f0f7a1b

Browse files
committed
Update
1 parent cf13719 commit f0f7a1b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

gazelle/python/generate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ func (py *Python) getRulesWithInvalidSrcs(args language.GenerateArgs) (invalidRu
513513
break
514514
}
515515
}
516-
// If all srcs are invalid, delete the rule.
517516
if allInvalidSrcs {
518517
invalidRules = append(invalidRules, newTargetBuilder(existingRule.Kind(), existingRule.Name(), args.Config.RepoRoot, args.Rel, nil).build())
519518
}

gazelle/python/kinds.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ var pyKinds = map[string]rule.KindInfo{
7070
MatchAny: false,
7171
NonEmptyAttrs: map[string]bool{
7272
"deps": true,
73+
"main": true,
7374
"srcs": true,
7475
"imports": true,
7576
},

0 commit comments

Comments
 (0)