Skip to main content

Module resolve

Module resolve 

Source
Expand description

Anti-recursion real-binary resolution. Walk PATH left→right, skipping the shim dir and dejavu’s own dir, and return the first matching executable.

We return the path found (e.g. entry/pnpm) and never canonicalize the exec target — version-manager wrappers (volta/asdf/nvm) dispatch on the name they are invoked as, so canonicalizing to the underlying node would break them. Canonicalization is only used for the directory-exclusion comparison.

Structs§

ResolveEnv

Functions§

resolve_real
Find the real binary named name, excluding the shim dir and dejavu’s dir.