src/ws/joint.bend fails
raw source on the hub · import ezx@1.11.0.0/src/ws/joint.bend as Joint
ws/joint: the one ledger a workspace is locked from (EZ-WS-3). ez lock in
a workspace writes one ez.lock.toml at the root, so it reads every member's
ledger; rather than teach the lock planner a second kind of World, the
members' ledgers are joined into one, and the lock planner runs on a World
whose ledger is that one. Every law the lock planner has is about every
World, so it holds of a workspace's lock as it does of a project's. The
design is docs/rfc/ez-workspaces.md.
The joint ledger is the root's [package] table with the dependencies and
tools of the root and of every member, a member's relative path sources
taken from the member's directory, as the root reads them. A name is one
dependency, or one tool, across the workspace: the first declaration of it
is the one the joint ledger holds, and every other must agree with it.
A dependency section with workspace = true names another member by its
[package] name (EZ-WS-5). Before the ledgers are joined, each such section
is given the member's package: its hash, the 0x name of the walk from the
member's entry over the committed files, its entry as a path from the root,
and the directory the walk writes its paths from. No ledger a person keeps
records any of that; only the joint ledger the lock reads does.
9 imports
import Base import ../ledger/manifest.bend as M import ../ledger/render.bend as Rend import ../pkg/path.bend as P import ../pkg/pkg.bend as K import ../lock/lock.bend as L import ../lock/world.bend as LW import ../pub/plan.bend as PP import ./workspace.bend as W
The reader could not load this file (at 0x8d817ff76bee5f8a754f0b8cceb7d07a/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}