Repository navigation
fix(task): mark global config file tasks as global - #11106
Conversation
📝 WalkthroughWalkthroughGlobal task loading now marks tasks included by global configuration files as global. The end-to-end test adds user and system global include directories and verifies task listing, filtering, and ChangesGlobal task includes
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant mise
participant load_file_tasks
participant GlobalTaskFiles
User->>mise: Run task listing or execution
mise->>load_file_tasks: Load task_config.includes
load_file_tasks->>GlobalTaskFiles: Read included global task files
load_file_tasks-->>mise: Mark included tasks as global
mise-->>User: List or run global tasks
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 SummaryThis PR fixes file tasks loaded via custom includes inside a global config (
Confidence Score: 5/5Safe to merge — a two-line logic change with a targeted e2e test that exercises the new and pre-existing global-task paths. The fix is surgical: one new boolean computed from the already-public No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "test(task): cover system config custom t..." | Re-trigger Greptile |
Summary
Root cause
File tasks were classified as global solely from the resolved include path. A user-global or system config could load scripts from a custom directory such as
~/dotfiles/tasksor an administrator-managed path, but those tasks retainedglobal = false, causing incorrect--global/--localfiltering and project-root selection.User impact
Custom scripts included by user-global and system configs now remain available globally, appear under
mise tasks --global, stay out ofmise tasks --local, and use the invoking local project root.Validation
mise run test:e2e test_task_ls_globalmise run lint-fixSummary by CodeRabbit
MISE_PROJECT_ROOT.