Builtin Library
README.md
deps.lockfile
A world's dependency lock, /zero/source/dependencies.lock ($schema: zero/deps-lock/v1): the one release of each package the world holds, directly or through another package, that deps.resolve chose, and the @builtin commit the world pins. world.resolveDependencies (zm deps resolve) writes it; a person does not. The world runs what it names: every require of an asset of a locked package reaches the asset inside the copy at the entry's path, whichever release the requiring file's table records, read again whenever the lock's bytes change.
{
"$schema": "zero/deps-lock/v1",
"builtin": { "commit": "<the @builtin commit the world pins>" },
"packages": [
{
"asset_guid": "889ac3ad-...", "checksum": "6531ffe1...", "name": "controlsKit",
"origin_commit": "d977a730...", "path": "/zero/source/controlsKit.package", "root": true,
"specs": [ { "by": "the world", "spec": "latest" } ],
"version": "1.4.16", "version_id": "0D66ZC0GDXJSMR2X4WB17CQQ6Z", "world_guid": "7db611e2-..."
}
],
"resolved_at_commit": "<the world commit it was resolved over>",
"warnings": [ { "note": "...", "package": "SecondWind" } ]
}
encode(lock)writes the canonical text: keys sorted, two-space indent, packages sorted by name then world, one newline at the end. The same lock always gives the same bytes on every engine.decode(text)reads it, holding it to the schema: every package namesname,path(under/zero/source/),rootandspecs;asset_guid,world_guid,version,version_id,checksum,origin_commitandmemberare text when present; no other key, and no package twice.check(text)is what a commit holds the file to: it decodes and it is in the canonical form. A lock edited by hand into anything else is refused atzm commit, naming the file and the reason.moves(before, after)names each package whose locked release moved:controlsKit 1.4.16 -> 1.4.17,<name> <release> (added),<name> <release> (removed), and@builtin <from> -> <to>.zm diffprints these lines for the lock.formatis the entrymodules.fileFormatsknows the file by.