Skip to content

Commit c573eb3

Browse files
committed
Update
1 parent 13d5396 commit c573eb3

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
@@ -508,7 +508,6 @@ func (py *Python) getRulesWithInvalidSrcs(args language.GenerateArgs) (invalidRu
508508
break
509509
}
510510
}
511-
// If all srcs are invalid, delete the rule.
512511
if allInvalidSrcs {
513512
invalidRules = append(invalidRules, newTargetBuilder(existingRule.Kind(), existingRule.Name(), args.Config.RepoRoot, args.Rel, nil).build())
514513
}

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)