Skip to main content

SEARCH_ROOTS

Constant SEARCH_ROOTS 

Source
pub const SEARCH_ROOTS: &[(&str, ConfigSource)];
Expand description

The search order every project-scoped lookup walks, highest precedence first.

Why: one ordered table rather than a chain of if exists blocks repeated per call site — the bug #5426 exists to remove. What: .trusty-code (native) → .claude (compatibility) → .open-mpm (legacy), each paired with the ConfigSource it resolves to. Test: paths::tests::precedence_prefers_trusty_code_over_claude.