patch package fails when file contains symbolic link to non existing file
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
This fails even when we filter those file using `--exclude` flag, as `copySync` (from `fs-extra`) fails for that symlink file irrespective of the filter flag
If I pass the `filter` option to exclude that file in `CopyOptionsSync` then it does not fail
OS: MacBook Pro, version: `15.5 (24F74)`
patch-package version: `6.5.1`
Context: I got this when I was building RN from [source](https://reactnative.dev/contributing/how-to-build-from-source) and made some changes and wanted to create patch out of it.
Error msg was: `Error: ENOENT: no such file or directory, stat '/Users/user/project/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/API/hermes/hermes.framework/hermes'`
Result of ls `ls /Users/user/project/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/API/hermes/hermes.framework/hermes` is as below
`65691767 lrwxr-xr-x@ 1 user staff 23 Aug 6 17:48 /Users/user/project/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/API/hermes/hermes.framework/hermes@ -> Versions/Current/hermes`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.