Commit 9830caa
fix(cocoapods): Correctly resolve
Replace the upward search for the nearest `node_modules` directory by
traversing up the directory tree and checking for the full path to the
`react_native_pods.rb` script at each level. The previous logic stopped
at the first `node_modules` directory found, which could incorrectly
resolve to a nested one inside another package (e.g. `node_modules/
react-native/node_modules`) leading to a broken path.
Signed-off-by: Onur Demirci <[email protected]>react_native_pods.rb script path1 parent dcec0ab commit 9830caa
File tree
1 file changed
+5
-9
lines changed- plugins/package-managers/cocoapods/src/main/kotlin
1 file changed
+5
-9
lines changedLines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
132 | 131 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 132 | + | |
137 | 133 | | |
138 | 134 | | |
139 | 135 | | |
| |||
0 commit comments