Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

patch package fails when file contains symbolic link to non existing file

未关闭
#580 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ds300/patch-package 的其他 Issue

查看 ds300/patch-package 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。