Skip to main content

Module deps

Module deps 

Source
Expand description

Shared dependency-checking infrastructure.

Used by both dbg and gdbg to verify tool availability.

Structs§

BundledToolkit
Declarative description of a toolkit that bundles helpers in a known subdirectory (e.g. host-linux-x64/).
DepStatus
Result of checking a single dependency.
Dependency
A single dependency with its check and install instructions.
ToolkitAnchor
Anchor a toolkit lookup to a binary that IS on $PATH. When set, find_bundled_tool canonicalizes the anchor binary and walks up the directory tree looking for a sibling <bin_subdir>/<tool>.
ToolkitRoot
A directory to probe for a bundled toolkit.

Enums§

DependencyCheck
How to verify a dependency is installed.

Functions§

check_dep
Check a single dependency.
extra_tool_dirs
Extra directories to search for tool binaries not on PATH.
find_bin
Resolve a binary name to its full path, checking PATH and extra tool dirs. Returns the full path if found, or the original name as fallback.
find_bundled_tool
Locate a helper binary inside a bundled toolkit. Returns the full path to the binary if found, otherwise None.
find_tool_root
Resolve a tool like dotnet to its installation root. Canonicalizes anchor_bin from $PATH (following Homebrew-style shims), walks up to walk_up levels looking for a preferred_sibling directory, and falls back to the directory that directly contains the anchor binary.
format_results
Format check results for display.