~/bend-docscommunity

src/add/world.bend fails

raw source on the hub · import ezx@1.5.0.0/src/add/world.bend as World

add/world: what ez add reads. The arguments it was given; the directory it runs in (here), which every git question anchors a relative path to; HOME, which a ~/ target is expanded against; the ledger's text, None when there is no ez.toml; .gitignore's text, "" when there is none; and the answers to the questions the planner (add/plan.bend) asked. The questions and answers are the upgrade's (lock/up.bend), which the lock's interpreter answers: Tags, Head and Refs for what a ref names, and Clone for the checkout at the rev, with its NAR hash and every file's text. A hub package added by its <name>@<version> (add/hub.bend) asks the lock's own questions instead (lock/world.bend), which the lock's interpreter answers too: Name for the hash the hub says the name names, and Pkg for the package's manifest and files, served by the hub. Those answers are hubs.

Everything here is a projection: what a World says, read one way. The planner is written over these, so each law about the plan is a law about them.

7 imports
import Base
import ../lock/up.bend as Up
import ../lock/world.bend as W
import ../ledger/manifest.bend as M
import ../pkg/path.bend as P
import ../ez/target.bend as Tgt
import ../ez/named.bend as Named