Read Rust file names from Git without quote decoding errors
维护者通常 1 天内回复
评估
调研方向
从 tools/format-rust.py 入手,具体检查 rust_files 以及它读取 git ls-files 输出的方式。检查 Git 对文件名加引号会如何影响当前按行分隔的解析,然后运行 helper 级测试,或使用包含 Unicode、空格以及转义字符或控制字符的文件名复现问题。完成标准是所有受跟踪的 Rust 路径都得到处理、没有遗漏,并且现有的跳过目录行为保持不变。
由索引模型根据 Issue 内容生成。
描述
Problem
rust_files runs line-delimited git ls-files and treats each line as a literal path. Git quotes non-ASCII and control-character filenames by default, so the helper silently skips valid tracked Rust files.
Reproduction
At fd07427f4a976de05e38eff3ee1760db97fbb761, a focused stub supplied the normal quoted Git record "caf\303\251.rs" for an existing café.rs file. list(rust_files()) returned []. This is a helper-level executed reproduction; no repository files were renamed. See tools/format-rust.py.
Scope
Use an unambiguous Git filename protocol, such as NUL-delimited output, preserving spaces, Unicode and embedded newlines. Difficulty: easy.
Completion criteria
- Visit every existing tracked Rust path without silent skipping.
- Test Unicode, spaces and escaped/control-character filenames.
- Retain skip-directory behavior.
- 主要语言
- Rust
- 星标
- 56
- 派生
- 21
- 平均合并
- 3 小时 41 分钟
- 30 天内合并 PR
- 48
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wavefnd/Wave 的其他 Issue
-
enhancement good first issue needs testing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
documentation enhancement good first issue
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
相似的 Issue
-
build: Update rust version可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭dependencies
难度 2/5 1-3 小时 新手友好度 67/100
ibm-granite-community/granite-cli#229 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
orottier/web-audio-api-rs#658 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
aosama/astronomical#1318 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
shep-pm/shep-kelpie#980 ·
维护者通常 1 天内回复