~/bend-docscommunity

src/fetch/run.bend fails

raw source on the hub · import ezx@1.9.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 0xead4c7939c9eaca8d47da53b4496b731/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