Skip to main content

detect_adapters

Function detect_adapters 

Source
pub fn detect_adapters(project_path: &Path) -> Vec<Box<dyn PackageManager>>
Expand description

Detect which adapters apply to a given project directory.

Several adapters detecting at once is normal and supported — a directory holding package-lock.json, uv.lock and Cargo.toml legitimately has three managers, each owning a different bloat directory. Adapters that would fight over the same directory are reduced to one first; see [resolve_conflicts].