src/ez/named.bend fails
raw source on the hub · import ezx@1.6.0.0/src/ez/named.bend as Named
ez/named: the name ez add records a dependency under, in the order cargo
names one. A source the ledger already holds keeps the name the ledger gave
it. Otherwise a package that is an ez project is named by its own
[package] name, when that is a TOML bare key; otherwise a repository by its
own name, and a directory by the directory's. The entry file names nothing,
because most packages call theirs main.bend, and two of them would share
one [deps.main]. A name the ledger gives to another source is refused
rather than written over.
4 imports
import Base import ../ledger/manifest.bend as M import ../ez/target.bend as Tgt import ../pkg/pkg.bend as K
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}