From e550b1924731350ae3c9517c19d265e6f1b2f287 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "internal/build: ignore some files in FindMainPackages (#27521)" This reverts commit 5bed0f5183abfae8c7e66c96b3a4331615fa45e0. --- internal/build/util.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/build/util.go b/internal/build/util.go index 5c77b236dcf5..3a0b384e5ee2 100644 --- a/internal/build/util.go +++ b/internal/build/util.go @@ -197,9 +197,6 @@ func FindMainPackages(dir string) []string { } for _, cmd := range cmds { pkgdir := filepath.Join(dir, cmd.Name()) - if !cmd.IsDir() { - continue - } pkgs, err := parser.ParseDir(token.NewFileSet(), pkgdir, nil, parser.PackageClauseOnly) if err != nil { log.Fatal(err)