Normalize dot segments before matching maintainer paths
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 tools/get_maintainer.py 开始,重现 issue 中的两个命令,以比较规范路径和包含点段的路径。使用不同的 section contact 和默认 contact 添加覆盖,然后验证等效的仓库相对路径会选择相同的 maintainer,同时 Windows 分隔符和带转义的路径保留现有行为。
由索引模型根据 Issue 内容生成。
描述
Problem
The maintainer lookup matches raw string prefixes after replacing backslashes. A common ./ prefix bypasses every relevant MAINTAINERS entry, routing a maintained file to the default. Equivalent paths should select the same ownership section.
Starting points: tools/get_maintainer.py.
Reproduction
Executed on Linux amd64 with Python 3.14.7. The affected files at local ade878134519b0f957ca28a23c6f9cd98e43dff3 are byte-identical to canonical master 286dad9c8fcb0616f7c719c72cbf453a7d9925fd.
python3 tools/get_maintainer.py front/parser/src/lib.rs
python3 tools/get_maintainer.py ./front/parser/src/lib.rs
The first command prints Maintainers to CC:; the second prints No specific maintainers found. Using default:. Current matching/default email addresses happen to be equal, but section selection is wrong and will misroute once contacts differ.
Scope
Easy: normalize repository-relative path spelling before matching while keeping ownership boundaries intact. This is a lookup behavior defect, separate from refreshing stale ownership entries in #352. Do not change maintainer contacts.
Completion criteria
- Canonical paths and equivalent ./ or internal dot-segment spellings select the same maintainers.
- Use a fixture with different section/default contacts to catch incorrect fallback.
- Preserve Windows separator handling and do not treat paths escaping the repository as owned files.
- 主要语言
- Rust
- 星标
- 56
- 派生
- 21
- 平均合并
- 2 小时 51 分钟
- 30 天内合并 PR
- 53
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wavefnd/Wave 的其他 Issue
-
bug good first issue needs testing
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug good first issue needs testing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement good first issue needs testing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement good first issue needs testing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement good first issue needs testing
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
aws-samples/sample-pacer#76 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
axodotdev/cargo-dist#2523 ·
维护者通常 2 天内回复