src/fetch/run.bend fails
raw source on the hub · import ezx@1.11.0.0/src/fetch/run.bend as Run
fetch/run: the interpreter for ez fetch. It reads whether there is an
ez.toml and the lock's text into a World, with the directory they are in,
then loops: it asks the planner (fetch/plan.bend) what is still open,
answers each question, 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 lays each tree and exits 1 with the reason when
the plan refuses. A tree under BEND_LIB is read here as the lock reads one
(Run.answer.lib), a hub package is fetched as the lock fetches one
(Run.answer), and a checkout is made as ez add makes one
(Run.answer.up of Up.Clone), in a scratch directory outside the project
and BEND_LIB that is removed whether or not the clone worked. A name's file
under BEND_LIB/names is read as it is. So nothing is
written while the questions are answered, and a refused fetch leaves
BEND_LIB as it found it. It decides nothing; that it reads and executes
faithfully is EZ-TRUST-2.
8 imports
import Base import 0x8e26a6f8c31689519e618374376ee3dd/main.bend as R import ../io/file.bend as F import ../lock/run.bend as Run import ../lock/world.bend as W import ../lock/up.bend as Up import ./world.bend as FW import ./plan.bend as FP
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 |