~/bend-docscommunity

src/lock/world.bend fails

raw source on the hub · import ezx@1.5.0.0/src/lock/world.bend as World

lock/world: everything ez lock reads, as one value, and what the lock may depend on in it. The planner (lock/plan.bend) is a pure function of a World; the interpreter (lock/run.bend) gathers one, answering each question the planner asks by IO, and executes the plan the planner returns. The design is docs/rfc/ez-lock-planner.md.

A World is the ledger's text, the committed .bend files, one answer per package the planner asked about, and, under --upgrade, one answer per question the upgrade asked (lock/up.bend). There is no field for the environment, the clock, untracked files, .ez/origins.toml or BEND_LIB's path, because the lock reads none of them. A package a dependency imports by <name>@<version> adds two questions, asked only when the ledger does not name it: the lock being rewritten, which already records every name it resolved, and, for a name it does not record, what the hub says the name names. Both are answers like any other, and enter the lock through their verdicts.

9 imports
import Base
import ./lock.bend as L
import ./up.bend as Up
import ../ledger/upgrade.bend as U
import ../ledger/manifest.bend as M
import ../pkg/pkg.bend as K
import ../hub/hub.bend as Web
import ../share/sha.bend as Sha
import ../share/say.bend as Say