src/add/run.bend fails
raw source on the hub · import ezx@1.9.0.0/src/add/run.bend as Run
add/run: the interpreter for ez add. It reads the directory it runs in,
HOME, ez.toml, .gitignore and the .bend files git lists into a World,
then loops: it asks the planner (add/relock.bend) what is still open,
answers each question with the lock's interpreter (Run.answer.ups: what
git prints for tags, HEAD or a ref, and a checkout at a rev with its NAR
hash and every file's text; Run.answer.all: for a hub package's name,
what the hub says the name names, and the package's manifest and files,
and for the lock that follows the add, each package and name it reads, as
ez lock answers them), and adds the answers to the World, until nothing
is left to ask. Then it runs the planner's plan with the lock's effect
runner (Run.exec.plan), which exits 1 with the reason when the plan
refuses. It decides nothing; that it reads and executes faithfully is
EZ-TRUST-2.
8 imports
import Base import 0xead4c7939c9eaca8d47da53b4496b731/main.bend as R import ../io/file.bend as F import ../lock/run.bend as Run import ../lock/up.bend as Up import ../lock/world.bend as W import ./world.bend as A import ./relock.bend as AR
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 |