Skip to content

Commit 25cd76f

Browse files
authored
skip plz-out when walking directories in the package driver (#339)
1 parent 94bf5e5 commit 25cd76f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/driver/packages/packages.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,11 @@ func directoriesToFiles(in []string, includeTests bool) ([]string, error) {
342342
if err := filepath.WalkDir(strings.TrimSuffix(x, "/..."), func(path string, d fs.DirEntry, err error) error {
343343
if err != nil {
344344
return err
345-
} else if strings.HasSuffix(path, ".go") && (d.Type()&fs.ModeSymlink) == 0 {
345+
}
346+
if d.Name() == "plz-out" {
347+
return filepath.SkipDir
348+
}
349+
if strings.HasSuffix(path, ".go") && (d.Type()&fs.ModeSymlink) == 0 {
346350
files = append(files, path)
347351
}
348352
return nil

0 commit comments

Comments
 (0)