OxL Справочник OxL
РусскийEnglish

error lock-outdated

error Стандарт: [III.2]

oxl.lock отсутствует или устарел при --locked / --frozen.

What it means#

oxl.lock records the exact versions, sources and content hashes of all dependencies, and a hash of the dependency declarations it was made from (D-6303). With --locked (and --frozen, which also forbids the network) the build must use the lock as it is: when a manifest of the workspace declares different dependencies, or the lock is missing, the build stops instead of rewriting the lock. Without these flags the lock is updated silently.

Example#

toml
# oxl.toml (oxl.lock was made with auth = "^2.1")
[deps]
auth = "^2.2"   # <- lock-outdated: `oxl build --locked` refuses to update oxl.lock

How to fix#

Run oxl build / oxl check / oxl update without --locked, review and commit the new oxl.lock. In CI keep --locked so that an unreviewed lock change fails the build.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства