Skip to main content

Module resolver

Module resolver 

Source
Expand description

Active-version resolution for a working directory.

Resolution order for a tool, walking up from the start dir:

  1. project config (osdk.toml) [tools] entry
  2. .tool-versions entry
  3. idiomatic version files (.nvmrc, .node-version, …) — per backend
  4. structured project metadata (package.json for Node)
  5. user global config [tools] entry

This module is intentionally synchronous and dependency-light so the osdk-shim launcher can use it on the hot path without a tokio runtime.

Structs§

ActiveVersion
A resolved active version for a tool, plus where it came from.
PackageManagerRequest

Enums§

VersionOrigin

Functions§

package_manager_from_package_json
Read the package-manager declaration from one specific package.json.
resolve_active
Resolve the active spec for tool, walking up from start_dir. Global config pins are consulted last. idiomatic maps a tool to its idiomatic filenames.
resolve_package_manager