From 4aba3809257d9de72193b1702402a5ac09ff43f1 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Mon, 22 Apr 2024 15:48:31 -0700 Subject: [PATCH] automatically exclude internal packages. Fixes #343 --- cmd_pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd_pkg.go b/cmd_pkg.go index c0d6cba..0f58480 100644 --- a/cmd_pkg.go +++ b/cmd_pkg.go @@ -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)