Skip to content

Commit

Permalink
automatically exclude internal packages. Fixes #343
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Apr 22, 2024
1 parent 08d1f14 commit 4aba380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd_pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func buildPkgRecurse(odir, path, rootpath string, exmap map[string]struct{}, bui
drs := Dirs(dir)
for _, dr := range drs {
_, ex := exmap[dr]
if ex || dr[0] == '.' || dr[0] == '_' {
if ex || dr[0] == '.' || dr[0] == '_' || dr == "internal" {
continue
}
sp := filepath.Join(path, dr)
Expand Down

0 comments on commit 4aba380

Please sign in to comment.