Skip to main content

Module lock

Module lock 

Source
Expand description

lex.lock — the resolved, reproducible pin file for registry dependencies (#893).

A lex.toml registry dependency states a constraint ({ registry = "…", version = "^1.2" }); the registry publishes a set of immutable releases (#911). Resolution (lex pkg lock, in lex-cli) picks the highest release satisfying the constraint and records the exact choice — version and the op-log head it points at — here, so a later resolve_package_import fetches that precise version instead of drifting to whatever is newest.

The format lives in lex-syntax (next to crate::workspace and crate::semver) because it is the resolved form of the manifest: package resolution reads it, and the CLI writes it. The resolution policy (which release to pick, how to fetch the version list) stays in lex-cli.

Structs§

LockEntry
One resolved dependency: the constraint that produced it and the exact release it pins to.
LockFile
The whole lex.lock file.

Constants§

LOCK_FORMAT_VERSION
Current lockfile format version.