~/bend-docscommunity

src/doctor/world.bend fails

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

doctor/world: what ez doctor reads. The C compiler $CC names ("" when it is unset) and $BEND_LIB ("" when it is unset), which the planner (doctor/plan.bend) turns into the compiler and the library it reports on; the ledger's text and the lock's text, None when there is no file; and the answers to the questions the planner asked. There is no field for the clock or the rest of the environment, because the planner reads neither.

A question is a program asked for its version, the names of the packages under BEND_LIB, the project's sources, or a package's tree under BEND_LIB. The sources are every .bend file git tracks, with its text, which is the lock's own listing (W.Listing), read the way ez lock reads it. So doctor judges the import lines ez lock judges. A tree is asked about with the lock's own question (W.Ask) and answered only from BEND_LIB: the manifest there and the text of each file it names, or that there is none. Doctor never asks the network, so this is all it can know of a package. A name the lock records is asked about as the file bend reads its hash from, $BEND_LIB/names/<nv>, as it is.

3 imports
import Base
import ../lock/world.bend as W
import ../ledger/manifest.bend as M