Skip to content

fix(#288): Windows の dotfiles-link 失敗を error にせず pending にする - #291

Draft
rebuildup wants to merge 1 commit into
release-0-10-0from
288
Draft

rebuildup wants to merge 1 commit into
release-0-10-0from
288

Conversation

@rebuildup

Copy link
Copy Markdown
Owner

Refs #288

問題

Windows の dotfiles-link step が毎回 error になり、毎時 converge が exit 1 になる。

実機では dotfiles 側の script/link.ps1 が param block の default で $PSScriptRoot を使うため、Windows PowerShell 5.1 では param 評価時に空になり Split-Path が失敗する (PowerShell 7 では解決される)。dotfiles 側の修正は rebuildup/dotfiles で行う。

変更

Windows native の dotfiles symlink はまだ canonical ではなく、user-level の agent 設定は WSL 側が canonical である (platforms/windows-11/README.md)。そのため link の失敗で machine convergence を失敗させない。

  • dotfiles-link の失敗を pending として記録する (終了コード 3)。
  • link script 自体が無い場合も pending。
  • CI に回帰防止の check を追加。

検証

  • converge.ps1 の構文解析と step 分類の check が PASS。
  • 実機: link.ps1 が 5.1 で失敗する状態でも converge が exit 1 にならないことを適用後に確認。

Co-Authored-By: Claude Code noreply@anthropic.com

Windows native の dotfiles symlink はまだ canonical ではなく、user-level の
agent 設定は WSL 側が canonical である (platforms/windows-11/README.md)。
それでも `dotfiles-link` step は失敗を error として記録し、毎時 converge が
exit 1 になっていた。

実機では dotfiles 側の `script/link.ps1` が param block の default で
`$PSScriptRoot` を使い、Windows PowerShell 5.1 では param 評価時に空になる
ため `Split-Path` が失敗する (PowerShell 7 では解決される)。dotfiles 側の
修正は rebuildup/dotfiles で行うが、pc-setup 側でも「native link が未
canonical である」以上、link の失敗で machine convergence を失敗させない。

- `dotfiles-link` の失敗を pending として記録する (終了コード 3)。
- link script 自体が無い場合も pending とする。
- CI に回帰防止の check を追加。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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