Skip to content

Commit b724448

Browse files
authored
Put an upper bound on "**/Podfile" search depth (#2480)
1 parent 18e8dba commit b724448

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli-platform-apple/src/config/findAllPodfilePaths.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ export default function findAllPodfilePaths(cwd: string) {
1515
return glob.sync('**/Podfile', {
1616
cwd: unixifyPaths(cwd),
1717
ignore: GLOB_EXCLUDE_PATTERN,
18+
// Stop unbounded globbing and infinite loops for projects
19+
// with deeply nested subdirectories. The most likely result
20+
// is `ios/Podfile`, so this depth should be plenty:
21+
deep: 10,
1822
});
1923
}

0 commit comments

Comments
 (0)