pub fn resolve_tool(spec: &ToolSpec, root: &Path) -> Option<PathBuf>Expand description
Find the executable for a tool, preferring the project’s own copy.
Repo-local first so a project is checked by the version its CI runs -
node_modules/.bin/eslint rather than whatever happens to be installed
globally, which may resolve plugins differently or not at all.
A path that exists but is not executable is skipped, not failed -
half-installed shims on PATH would otherwise block a tool that
happens to be on PATH under the same name.