Fix test fixture, README provenance and remaining Windows-only polish
还没有人认领这个 Issue。
评估
调研方向
从 plugin/scripts/godebugdiff_test.go 中的 TestCompareWindowsOnly 测试夹具开始,其中 winreadlinkvolume 被期望为 Changed: 26,但应为 23。通过注释 compare() 中的 c.WindowsOnly = isWindowsOnly(k) 来复现第 1 项,并检查失败信息中的 URL。当该夹具断言 23 并带有 #go-123 URL,且检查 Before、After 和 Package,同时 examples/README.md 在一处说明每个文件的工具链时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Follow-up from #12:
- TestCompareWindowsOnly (plugin/scripts/godebugdiff_test.go) gives winreadlinkvolume Changed: 26. The real value is 23, so the change gets the URL go.dev/doc/godebug#go-126 instead of #go-123. To reproduce: comment out c.WindowsOnly = isWindowsOnly(k) in compare() and run the test; the failure message prints URL:https://go.dev/doc/godebug#go-126. Use 23. The test also ignores the second value compare() returns and never checks Before, After or Package. Asserting them costs nothing.
- The WindowsOnly field comment now says "Windows-specific setting", but isWindowsOnly only checks the "win" name prefix. Make the comment match the rule, or derive the mark from an explicit list.
- examples/README.md line 12 still says the real outputs were made with Go 1.27.3, and the new line 24 says cobra.txt was redone with Go 1.27.4. Put the toolchain for each file in one place, for example a column in the table.
- Item 3 of #11 is still open, although #12 closes #11: the "No binary imports the package, so no effect" section still adds "(Windows only)". To reproduce: run from 1.22 to 1.23 on a module whose only binary is an empty func main() {}. Also, windowsOnly still uses omitempty while goCommand is always emitted, and the report does not tell Linux-only services that they can ignore the pins for Windows-only settings.
GillMacedo
- 主要语言
- Go
- 星标
- 0
- 派生
- 3
- 平均合并
- 4 小时 55 分钟
- 30 天内合并 PR
- 4
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GillMacedo/godebugdiff 的其他 Issue
-
good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
Add a --only flag to filter by package可能已有人在做 @snehaapratap 于 13 天前认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 25/100
-
Read the go line from go.work in workspace mode可能已有人在做 @ducnhan123-co 于 12 天前认领。 未关闭good first issue
难度 4/5 3-5 天 新手友好度 22/100
GillMacedo/godebugdiff#4 · 1 条评论 ·
-
good first issue
难度 3/5 1-2 天 新手友好度 55/100
查看 GillMacedo/godebugdiff 的全部 Issue
相似的 Issue
-
good first issue severity: low tech-debt
难度 2/5 半天 新手友好度 75/100
TMHSDigital/subenum#329 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
GillMacedo/racesift#14 ·
-
IsTextFile reads the whole file into memory (OOM on large files in the file watcher)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
gtsteffaniak/filebrowser#3395 ·
维护者通常 1 天内回复
-
effort:s impact:low raised-by:worker risk:low
难度 1/5 1 小时以内 新手友好度 70/100
medici-finance/assay#6496 · 1 条评论 ·
维护者通常 1 天内回复
-
kind/bug require/reproduce require/severity
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复