Skip to main content

resolve_module_path

Function resolve_module_path 

Source
pub fn resolve_module_path(
    root: &Path,
    module_name: &str,
    include_paths: &[String],
) -> Option<PathBuf>
Expand description

Resolve a Perl module name to a workspace-relative filesystem path candidate.

The search order is:

  1. Each configured include path in order:
    • Relative paths are resolved under root and validated against traversal.
    • Absolute paths are treated as literal external roots.
  2. Fallback to root/lib/<module>.pm.