Rethink automatic discovery of commands
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
先阅读 https://github.com/react-native-community/cli/issues/567 中的相关 issue,以了解 eager-loading 失败的原因。然后调查用户配置和命令的自动发现机制;完成的标准是定义一种更安全的发现或命令退出行为,防止第三方副作用干扰 CLI 工作流。
由索引模型根据 Issue 内容生成。
描述
By installing a 3rd party dependency, which exposed a custom command with a side-effectful code loaded eagerly, CLI bailed on cleanly exiting after executing a command.
See https://github.com/react-native-community/cli/issues/567 for details.
This scenario revealed a flaw in our plugin design, where any package may, consciously or not, abuse the user workflow. We should rethink the automatic discovery of user configs (and in turn commands). Maybe it's not that big of a deal, but maybe we can do something to make it harder to exploit. Or at least hard exit after the command was finished, to not let it go rogue.
cc @grabbou @satya164 @cpojer
- 主要语言
- TypeScript
- 星标
- 2.9k
- 派生
- 949
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-native-community/cli 的其他 Issue
-
bug report
难度 2/5 1-3 小时 新手友好度 84/100
react-native-community/cli#2826 ·
-
bug report
难度 2/5 1-3 小时 新手友好度 78/100
react-native-community/cli#2825 ·
-
run-ios: "Unable to boot device in current state: Booted" alert when the simulator is already booted 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
react-native-community/cli#2820 ·
-
feature request
难度 4/5 3-5 天 新手友好度 68/100
react-native-community/cli#2856 ·
-
FASOCARD 未关闭bug report
难度 5/5 一周以上 新手友好度 5/100
react-native-community/cli#2855 ·
查看 react-native-community/cli 的全部 Issue
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100