Unverified Commit 84b05d4f authored by Delweng's avatar Delweng Committed by GitHub

internal/build: ignore some files in FindMainPackages (#27521)

parent b1ef0bfe
......@@ -197,6 +197,9 @@ 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment