Skip to content

Commit 5bed0f5

Browse files
jsvisadevopsbo3
authored andcommitted
internal/build: ignore some files in FindMainPackages (ethereum#27521)
1 parent 53e07ce commit 5bed0f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/build/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ func FindMainPackages(dir string) []string {
197197
}
198198
for _, cmd := range cmds {
199199
pkgdir := filepath.Join(dir, cmd.Name())
200+
if !cmd.IsDir() {
201+
continue
202+
}
200203
pkgs, err := parser.ParseDir(token.NewFileSet(), pkgdir, nil, parser.PackageClauseOnly)
201204
if err != nil {
202205
log.Fatal(err)

0 commit comments

Comments
 (0)