commit c621278

chld  ·  2026-02-07 20:33:09 +0000 UTC
parent 6612b51
less permissive FindPkg
1 files changed,  +1, -1
+1, -1
1@@ -22,7 +22,7 @@ func FindPkg(pkg string) (string, bool) {
2 			bool = false
3 		}
4 
5-		if d.IsDir() && strings.Contains(path, pkg) {
6+		if d.IsDir() && filepath.Base(path) == pkg { // less permissive, finds correctly
7 			pkg = path
8 			if !strings.Contains(path, ".git/") {
9 				bool = true