fix(task): align duplicate config task precedence#10471
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), 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)
📝 WalkthroughWalkthrough
ChangesTask Config Precedence Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 SummaryThis PR fixes a task-precedence bug where two inline
Confidence Score: 5/5Safe to merge — the change is a minimal, well-targeted guard in a single branch of The changed code path is a single added condition; the existing TOML-overlay behaviour for file-backed tasks is fully preserved, and the 'first config wins' behaviour for duplicate inline blocks matches the documented precedence ordering already established by No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "docs(task): update merge_file_and_config..." | Re-trigger Greptile |
|
This PR currently has failing checks. If this continues for 7 days, it will be closed automatically. This is warning day 1 of 7. Please update the PR when you have a chance. Feel free to reopen or create a new PR if it is closed and you'd like to continue working on it. This comment was generated by an automated workflow. |
The merge guard only overlays TOML metadata onto file-backed tasks, so the unit test mocks need `file` set like real discovered scripts.
Document the file.is_some() overlay guard and multi-config inline task precedence so the comment matches current behavior.
Summary
[tasks.<name>]..config/mise.tomlplus.mise/config.tomlduplicate task definitions.Context
Investigates project item 190217576 / discussion #9947. The bug was still real on current
main:mise taskslisted.config/a, whilemise run aexecuted.mise/a.Verification
cargo fmtcargo build --bin mise --all-featurese2e/run_test tasks/test_task_config_precedencee2e/run_test tasks/test_task_file_toml_merge.config/mise.tomland.mise/config.tomltask definitionsSummary by CodeRabbit
Bug Fixes
Tests