src/pub/world.bend fails
raw source on the hub · import ezx@1.6.0.0/src/pub/world.bend as World
pub/world: what ez publish reads. The directory the project is in
(here), which git is asked about; the ledger's text, None when there is no
ez.toml; and the answers to the questions the planner (pub/plan.bend)
asked. There is no field for BEND_LIB, the hub or the clock, because the
planner reads none of them.
A question is one of the tool commands' own (tool/world.bend): Locate for
what git says of the project, git status --porcelain
--untracked-files=normal among it, and Read for a file the package walk
asks for. Two are publish's: Tracked, every file git tracks under the
project with its git ls-files -v tag, and Upload, bend <entry>
--publish, with the <name>@<version> the ledger names the package by
after it when it names one, run and what it printed. The upload carries the
line said just before it runs: the description the hub will show. The upload is the one
question whose answering is not a read: it sends the package, so the planner
asks it last, once every check that can be made before it has passed.
2 imports
import Base import ../tool/world.bend as TW
The reader could not load this file (at 0x3f0fc9ea10e26a05d780e2727546ce31/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}