patch package fails when file contains symbolic link to non existing file
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- nodejs, typescript
- 领域
- tooling
调研方向
首先追踪调用 fs-extra's copySync 并处理 CopyOptionsSync 的补丁生成路径,包括 --exclude 过滤器。使用报告中的悬空符号链接重现故障,并检查过滤是如何应用的。完成标准是:被排除的损坏符号链接不再导致 ENOENT 错误。
由索引模型根据 Issue 内容生成。
描述
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 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
- 主要语言
- TypeScript
- 星标
- 11.2k
- 派生
- 326
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ds300/patch-package 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
ds300/patch-package#617 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 78/100
ds300/patch-package#615 · 1 条评论 · 4 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 62/100
ds300/patch-package#216 ·
-
难度 3/5 1-2 天 新手友好度 25/100
ds300/patch-package#611 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
ds300/patch-package#610 · 4 条评论 · 1 个 reaction ·
查看 ds300/patch-package 的全部 Issue
相似的 Issue
-
refactor
难度 2/5 半天 新手友好度 84/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
OHDSI/Data2Evidence#3450 ·
维护者通常 2 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 90/100
redhat-developer/rhdh-plugin-export-overlays#4011 · 1 条评论 ·
维护者通常 1 天内回复
-
automation missing-model model-sync provider:ofox
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/models.dev#8421 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复