src/fetch/world.bend fails
raw source on the hub · import ezx@1.9.0.0/src/fetch/world.bend as World
fetch/world: what ez fetch reads. The directory the project is in
(here), which a relative path in the lock is anchored to; whether there is
an ez.toml, since fetch fills BEND_LIB for a project and nothing else; the
lock's text, None when there is no ez.lock.toml; and the answers to the
questions the planner (fetch/plan.bend) asked. There is no field for
BEND_LIB's path, the environment or the clock, because the planner reads
none of them.
A question is about one package of the lock, by its hash: the tree already
under BEND_LIB (Laid), or the package fetched from where the lock says it
comes from. A git package is the upgrade's own Clone question
(lock/up.bend), a shallow checkout at the pinned rev with every file's
text; a hub package is the lock's own question (lock/world.bend), the
hub's manifest and every file it names. Laid and a hub package are
answered the way the lock answers its questions, with a manifest and the
texts of the files it names, and a clone the way the upgrade answers
Clone.
A name the lock records is asked about too: the file bend reads its hash
from, $BEND_LIB/names/<nv> (Named), as it is, or that there is none.
5 imports
import Base import ../toml/toml.bend as T import ../lock/lock.bend as L import ../lock/world.bend as W import ../lock/up.bend as Up
The reader could not load this file (at 0x53ca730219156b024641a00935516f18/src/ledger/manifest.bend:31). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
30 | # not be the one.
31>| type Tool is Data:
| ^^^^
32 | Tool{name: String, entry: String, bin: String, source: Source}