Skip to main content

resolve_tool_path

Function resolve_tool_path 

Source
pub(crate) async fn resolve_tool_path(tool: &str) -> Option<String>
Expand description

Returns the path to the installed CLI binary if present in the per-version cache, else None. Used by install.check. Locate a system tool (e.g. git, gh) on this process’s PATH and return its absolute path; None when it isn’t there.

Used by resolve.prereqs to pre-launch-check whether a provider’s system dependencies are installed. The lookup is path-only — never executes the tool. (resolve.prereqs runs --version separately, and only for tools the caller lists in versions.) See SPEC_PROVIDER_SYSTEM_PREREQS_2026_05_18.md.