automatically exclude internal packages. Fixes #343

This commit is contained in:
Randall C. O'Reilly 2024-04-22 15:48:31 -07:00
parent 08d1f14ff9
commit 4aba380925
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func buildPkgRecurse(odir, path, rootpath string, exmap map[string]struct{}, bui
drs := Dirs(dir) drs := Dirs(dir)
for _, dr := range drs { for _, dr := range drs {
_, ex := exmap[dr] _, ex := exmap[dr]
if ex || dr[0] == '.' || dr[0] == '_' { if ex || dr[0] == '.' || dr[0] == '_' || dr == "internal" {
continue continue
} }
sp := filepath.Join(path, dr) sp := filepath.Join(path, dr)