Skip to main content

resolve_index_path

Function resolve_index_path 

Source
pub fn resolve_index_path(
    settings: &Settings,
    config_path: Option<&Path>,
) -> PathBuf
Expand description

Resolve the index path from settings, accounting for –config flag usage

When using –config from outside the project:

  1. If index_path is absolute: use as-is
  2. If index_path is relative and config_path provided: resolve relative to config file
  3. If workspace_root is set: resolve relative to workspace_root
  4. Otherwise: use as-is (will be relative to CWD)