src/lock/run.bend fails
raw source on the hub · import ezx@1.8.0.0/src/lock/run.bend as Run
lock/run: the interpreter for ez lock. It reads the ledger and the
committed sources into a World, then loops: it asks the planner
(lock/plan.bend) what is still open, answers each question by IO, and adds
the answers to the World, until nothing is left to ask. Then it runs the
planner's plan. It decides nothing: which packages to read, whether their
bytes are the ones the ledger names, where an upgrade moves a pin, and what
is written are the planner's. That it reads and executes faithfully is
EZ-TRUST-2. It answers a name's question by asking the hub once, and the
lock's by reading ez.lock.toml. Under --upgrade it also answers the
upgrade's questions (lock/up.bend): what git prints for refs, the default
branch and tags, ancestry, checkouts at a rev, the hub's manifest for a
moved hash, .gitignore, and the project's sources. A new checkout's package is walked
from its entry here, by K.pkg_of, which is interpreter code under
EZ-TRUST-2 until ez add is converted.
15 imports
import Base import 0xead4c7939c9eaca8d47da53b4496b731/main.bend as R import ../io/file.bend as F import ../hub/hub.bend as Web import ../hub/get.bend as Net import ../git/git.bend as Git import ../git/exec.bend as GX import ../pkg/pkg.bend as K import ../pkg/path.bend as P import ../share/say.bend as Say import ../share/spin.bend as Spin import ./lock.bend as L import ./world.bend as W import ./up.bend as Up import ./plan.bend as Plan
The reader could not load this file (at 0xa4d47e5f0f6044ac1a983d1b051fa47a/src/step.bend:16). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Lost)
- observed : 'Lost'
Location:
15 | Kept{value: A}
16>| Lost{line: String}
| ^^^^
17 |