Skip to content

Commit

Permalink
Update java/gazelle/generate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wagner-Hall <[email protected]>
  • Loading branch information
bartoszpop and illicitonion authored May 7, 2024
1 parent 6e791fe commit 9e02620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/gazelle/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (l javaLang) GenerateRules(args language.GenerateArgs) language.GenerateRes
srcs := make([]string, 0, allTestRelatedSrcs.Len())
for _, src := range allTestRelatedSrcs.SortedSlice() {
if _, ok := separateTestJavaFiles[src]; !ok {
srcs = append(srcs, strings.TrimPrefix(filepath.ToSlash(src.pathRelativeToBazelWorkspaceRoot), filepath.ToSlash(args.Rel+"/")))
srcs = append(srcs, strings.TrimPrefix(filepath.ToSlash(src.pathRelativeToBazelWorkspaceRoot), args.Rel+"/"))
}
}
if len(srcs) > 0 {
Expand Down

0 comments on commit 9e02620

Please sign in to comment.