src/add/world.bend fails
raw source on the hub · import ezx@1.10.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
The reader could not load this file (at 0xa75de0623b4b308c27d8fdf1abe399cb/src/ledger/manifest.bend:41). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
40 | # not be the one.
41>| type Tool is Data:
| ^^^^
42 | Tool{name: String, entry: String, bin: String, source: Source}