Expand description
Shared dependency-checking infrastructure.
Used by both dbg and gdbg to verify tool availability.
Structs§
- Bundled
Toolkit - 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.
- Toolkit
Anchor - Anchor a toolkit lookup to a binary that IS on
$PATH. When set,find_bundled_toolcanonicalizes the anchor binary and walks up the directory tree looking for a sibling<bin_subdir>/<tool>. - Toolkit
Root - A directory to probe for a bundled toolkit.
Enums§
- Dependency
Check - 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
dotnetto its installation root. Canonicalizesanchor_binfrom$PATH(following Homebrew-style shims), walks up towalk_uplevels looking for apreferred_siblingdirectory, and falls back to the directory that directly contains the anchor binary. - format_
results - Format check results for display.