Repository navigation
Conversation
Windows の converge は dotfiles checkout を `main` に switch しないため、release branch に残った checkout は `git merge --ff-only origin/main` が常に失敗し、 以降すべての run で dotfiles state が採用されない。実機では `~/.dotfiles` が `release/res-integration` に残ったまま `repos ~/.dotfiles ... differs` が 報告され続けていた。 - `scripts/sync-dotfiles.ps1` を追加する (POSIX の `scripts/sync-dotfiles.sh` と 同じ interface / 同じ refusal rule)。 - checkout は target ref へ switch してから ff する。origin 不一致 / dirty / git でない path は従来どおり拒否し、reset も stash もしない。 - `platforms/windows-11/converge.ps1` は dotfiles sync をこの script に委譲する。 - `scripts/test-sync-dotfiles.ps1` で実 git fixture に対して検証し、CI に追加。 Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #283
問題
Windows の converge は dotfiles checkout を
mainに switch しない。platforms/windows-11/converge.ps1のInvoke-DotfilesSyncはgit fetch origin mainとgit merge --ff-only origin/mainのみを Execute するため、checkout が release branch に残っていると merge が必ず失敗し、以降すべての run でdotfiles-syncが error になる。2026-11-30 実機 (Windows):
~/.dotfilesはrelease/res-integrationにあり、毎時 converge の verify がrepos ~/.dotfiles release/res-integration differsを報告し続けていた。POSIX 版のscripts/sync-dotfiles.shはgit switch mainしてから ff するため、同じ machine-global checkout が OS ごとに別挙動になっていた。変更
scripts/sync-dotfiles.ps1を追加 (POSIX のscripts/sync-dotfiles.shと同じ interface / 同じ refusal rule)。merge --ff-only。script/link.ps1が存在することを検証。platforms/windows-11/converge.ps1の dotfiles sync をこの script に委譲 (dirty / origin の事前チェックは converge 側に残し、より具体的な step message を保つ)。scripts/test-sync-dotfiles.ps1: 実 git fixture (bare origin + clone) で以下を検証。release branch に残った checkout が main へ収束する / dirty checkout は拒否され変更が残る / git でない path は拒否され上書きされない。CI (ci.sh / ci.yml) に追加。検証
scripts/test-sync-dotfiles.ps1: 全項目 PASS (ローカル実行)。~/.dotfilesがrelease/res-integrationに残っていた状態を、この script で main へ収束させる予定 (適用後の evidence は別 PR / Issue に記載)。Co-Authored-By: Claude Code noreply@anthropic.com