Repository navigation
fix(bootstrap): allow Windows bootstrap without system files - #12003
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughNon-Unix managed-resource validation now permits empty requests. Windows end-to-end tests verify successful bootstrap commands without system files and rejection when system files are configured. ChangesBootstrap validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change allows repo-only Windows bootstrap configurations to succeed while preserving the existing error for managed system resources; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
Greptile SummaryThe PR allows aggregate Windows bootstrap validation when no managed system files or directories are configured while preserving the platform error when either collection is non-empty.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "test(bootstrap): fix Windows repo fixtur..." | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e01a2cb. Configure here.
Instruction counts
No instruction-count regression above 1%. Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run. Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.
|

Summary
Root cause
The non-Unix
validate_principalsimplementation always returned an error. Aggregate bootstrap paths call it whenever the files phase is enabled, including when the configured file and directory collections are empty. This caused unrelated bootstrap configuration such as[bootstrap.repos]to fail on Windows.Fixes the regression reported in #12002.
Verification
cargo fmt --all -- --checkcargo test --bin mise system::managed_files(13 passed)hk run check --safe --format jsonscoped to the Rust change (cargo-fmt,cargo-checkpassed)AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable.
Note
Low Risk
Narrow platform-specific guard change with explicit regression tests; managed system files on Windows remain rejected.
Overview
Windows bootstrap no longer fails when only non-file bootstrap config (e.g.
[bootstrap.repos]) is present. Non-Unixvalidate_principalsused to always error; it now returns success when there are no managed files or directories, and still errors with managed system files are only supported on Unix when those resources are configured.Adds Windows Pester coverage (
e2e-win/bootstrap.Tests.ps1) forbootstrap,bootstrap status, andbootstrap planon repo-only config, plus a case that managed[bootstrap.files]still fails as expected.Reviewed by Cursor Bugbot for commit 56d004d. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit