Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix symlink loop during pods installation #2917

Merged
merged 1 commit into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions example/patches/expo-modules-autolinking+1.11.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/node_modules/expo-modules-autolinking/build/ReactImportsPatcher.js b/node_modules/expo-modules-autolinking/build/ReactImportsPatcher.js
index 9b62410..0a25fd4 100644
--- a/node_modules/expo-modules-autolinking/build/ReactImportsPatcher.js
+++ b/node_modules/expo-modules-autolinking/build/ReactImportsPatcher.js
@@ -83,7 +83,7 @@ exports.patchFileAsync = patchFileAsync;
* @param dryRun true if not writing changes to file
*/
async function patchDirAsync(headerSet, dir, dryRun) {
- const files = await (0, fast_glob_1.default)('**/*.{h,m,mm}', { cwd: dir, absolute: true });
+ const files = await (0, fast_glob_1.default)('**/*.{h,m,mm}', { cwd: dir, absolute: true, followSymbolicLinks: false });
return Promise.all(files.map((file) => patchFileAsync(headerSet, file, dryRun)));
}
//# sourceMappingURL=ReactImportsPatcher.js.map
\ No newline at end of file
diff --git a/node_modules/expo-modules-autolinking/src/ReactImportsPatcher.ts b/node_modules/expo-modules-autolinking/src/ReactImportsPatcher.ts
index 7625652..96e4fc8 100644
--- a/node_modules/expo-modules-autolinking/src/ReactImportsPatcher.ts
+++ b/node_modules/expo-modules-autolinking/src/ReactImportsPatcher.ts
@@ -96,6 +96,6 @@ export async function patchFileAsync(headerSet: Set<string>, file: string, dryRu
* @param dryRun true if not writing changes to file
*/
async function patchDirAsync(headerSet: Set<string>, dir: string, dryRun: boolean) {
- const files = await glob('**/*.{h,m,mm}', { cwd: dir, absolute: true });
+ const files = await glob('**/*.{h,m,mm}', { cwd: dir, absolute: true, followSymbolicLinks: false });
return Promise.all(files.map((file) => patchFileAsync(headerSet, file, dryRun)));
}
Loading