Skip to content

fix: clarify setup doctor after install - #197

Merged
z2z23n0 merged 1 commit into
mainfrom
fix/doctor-setup-install-ux
Jun 20, 2026
Merged

fix: clarify setup doctor after install#197
z2z23n0 merged 1 commit into
mainfrom
fix/doctor-setup-install-ux

Conversation

@z2z23n0

@z2z23n0 z2z23n0 commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Mainline Intent

Intent: int_4516e83f
Status: proposed
Title: 澄清 doctor --setup 的安装后引导

What changed

把 README 和 reference 文档里的安装后校验从 mainline doctor --setup 改成 mainline version,并在 doctor --setup 不在 Git 仓库内运行时输出专门提示,说明它是仓库配置检查而不是 CLI 安装验证。

Why

Issue #196 的日志显示 install.sh 已经安装成功,但紧接着运行的 mainline doctor --setup 因为不在 Git 仓库内报 NOT_IN_GIT_REPO,让用户误以为安装失败。安装验证和仓库配置检查需要在文档和错误提示里明确分开。

Decisions

  • 安装后应该推荐哪个验证命令: 推荐 mainline version 验证 CLI 已安装并在 PATH 中 (mainline version 不依赖 Git 仓库,符合刚安装后的任意目录验证场景。)
    • Rejected: 继续把 mainline doctor --setup 作为安装验证命令
  • doctor --setup 在非 Git 目录里的行为: 保留失败状态,但把提示改成说明必须在 Git 仓库内运行,并建议先用 mainline version 验证安装 (doctor --setup 检查的是 refspec、identity、.gitignore、policy 等仓库配置;让它在非仓库目录成功会掩盖真实语义。)

Subsystems: README.md, README.zh.md, cli, docs, doctor setup onboarding

@z2z23n0
z2z23n0 merged commit 37efaa2 into main Jun 20, 2026
8 checks passed
@z2z23n0 z2z23n0 mentioned this pull request Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant