~/bend-docscommunity

src/lock/lock.bend fails

raw source on the hub · import ezx@1.10.0.0/src/lock/lock.bend as Lock

lock/lock: the lock document. What a package is (its source and its files), where the ledger says each package comes from, the imports a package's sources name, and the text of ez.lock.toml, written and read back. Nix reads the lock and fetches each file as a fixed-output derivation, so bend never touches the network inside the sandbox.

A package resolves from the hub, or, when it was vendored from a repo that never published, from the git rev recorded for it. Both end up as the same BEND_LIB tree. ez.toml is the only record of where a package comes from.

Everything here is pure. Deciding the lock is lock/plan.bend's, over the World lock/world.bend describes, and reading and writing are lock/run.bend's. ez fetch reads a lock back in fetch/plan.bend.

4 imports
import Base
import ../toml/toml.bend as T
import ../ledger/manifest.bend as M
import ../pkg/pkg.bend as K