~/bend-docscommunity

src/add/run.bend fails

raw source on the hub · import 0x886223f5c47e4983fe57d887c034bc7f/src/add/run.bend as Run

add/run: the interpreter for ez add. It reads the directory it runs in, HOME, ez.toml and .gitignore into a World, then loops: it asks the planner (add/plan.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; for a hub package's name, Run.answer.all: what the hub says the name names, and the package's manifest and files), 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 0xabe575924687afad4cee1a2c1194d639/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 ./plan.bend as AP