非 Windows 拦截:#10 剩下的三处

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
desktop, testing

调研方向

Three separate spots need platform guards. Start with handleOpen in the manager UI, then shellOpen in internal/ui/window_other.go, where the non-Windows error should be unsupported rather than a plain error. Next, qemuOf swallows the process-list unsupported error in the window show|hide path on darwin and linux. Finally, TestBridgeScriptRejectsRelativeSystemRoot needs an assertion that tells a rejection apart from a launch failure. Done means non-Windows calls return unsupported without creating <root>/logs, and the test fails when the guard is removed.

由索引模型根据 Issue 内容生成。

描述

bug P2 platform:linux platform:macos

#10、#11 的 PR 审查后留下的 P2,Windows 上不受影响:

  • 管理器「打开目录」:handleOpen 前面没有平台拦截,打开日志目录时会先建出 <根>/logs,再调用 shellOpen。非 Windows 上的 shellOpen(internal/ui/window_other.go)返回的是普通错误,不是 unsupported,最后被包成 internal。
  • window <i> show|hide 在 darwin / linux 上没有拦截:qemuOf 把进程列表的 unsupported 吞掉了,把实例当成没开机,返回成功。
  • TestBridgeScriptRejectsRelativeSystemRoot 拦不住回归:把「SystemRoot 为空或不是绝对路径就拒绝」这段保护整个删掉,测试在 Windows 上照样通过,因为相对路径的 powershell.exe 本来就起不来,走到的是同一个错误。要换一种能区分「拒绝」和「起不来」的断言。
主要语言
Go
星标
0
派生
1
平均合并
2 小时 42 分钟
30 天内合并 PR
13

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

ModAVD/ModAVDManager 的其他 Issue

查看 ModAVD/ModAVDManager 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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