src/tool/world.bend fails
raw source on the hub · import ezx@1.7.0.0/src/tool/world.bend as World
tool/world: what ez tool run, install and upgrade read. The act and
the target they were given; the directory they run in (here), which a
relative cache root is taken from; the variables that place the cache and
the link (EZ_TOOL_BIN, XDG_BIN_HOME, XDG_CACHE_HOME, HOME, PATH);
the bend on the PATH, as its banner's first line; the file --entry names,
"" when it names none; the project's ledger and lock, None when there is
none; and the answers to the questions the planner (tool/plan.bend)
asked. ez tool sync reads only the ledger and the lock.
A question is a file's text, whether a binary is there, what git says of a
local path, or one of the upgrade's (lock/up.bend): Head for the commit a
remote's HEAD names, and Clone for the checkout at a rev with every
file's text. The upgrade's are answered by the lock's interpreter and kept
apart, in ups, so its lookups serve here as they are.
Everything else here is a projection: what a World says, read one way.
4 imports
import Base import ../lock/up.bend as Up import ../ledger/manifest.bend as M import ../pkg/path.bend as P
The reader could not load this file (at 0xd9eedaedd82ad7ac346aadcc1f92c7fb/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}