Expand description
Core types and utilities for dependency resolution.
This module provides shared types, context structures, and helper functions used throughout the resolver. It consolidates:
- Resolution context and core shared state
- Context structures for different resolution phases
- Pure helper functions for dependency manipulation
Structs§
- Manifest
Override - Stores override information from manifest dependencies.
- Override
Key - Key for override index lookup.
- Pattern
Context - Context for pattern expansion operations.
- Resolution
Context - Base resolution context with immutable shared state.
- Resolution
Core - Core shared context for dependency resolution.
- Resolved
Dependency Info - Value type for resolved dependencies tracked for conflict detection.
- Transitive
Context - Context for transitive dependency resolution.
Enums§
- Resolution
Mode - Determines which resolution strategy to use for a dependency
Functions§
- apply_
manifest_ override - Apply manifest overrides to a resource dependency.
- build_
resource_ id - Builds a resource identifier in the format
source:path. - extract_
filename_ from_ path - Extracts the filename from a path.
- format_
dependency_ with_ version - Formats a dependency reference with version suffix.
- format_
dependency_ without_ version - Formats a dependency reference without version suffix.
- normalize_
lookup_ path - Normalizes a path by stripping leading
./prefix. - strip_
resource_ type_ directory - Strips resource type directory prefix from a path.
Type Aliases§
- Conflict
Detection Key - Key type for resolved dependencies tracked for conflict detection.
- Dependency
Key - Type alias for dependency keys used in resolution maps.
- Manifest
Override Index - Override index mapping resource identities to their manifest customizations.
- Resolved
Dependencies Map - Concurrent map type for tracking resolved dependencies during conflict detection.