src/ws/up.bend fails
raw source on the hub · import ezx@1.11.0.0/src/ws/up.bend as Up
ws/up: ez lock --upgrade at a workspace root (EZ-WS-4). The upgrade is
planned, as the lock is, on the joint ledger (ws/joint.bend), so a source a
name declares moves once for the whole workspace. What it writes back is
not the joint ledger, which no file holds: the one write of ez.toml the
upgrade plans is replaced by a write of every ledger that declares a moved
name, the root's and each member's, each dependency and tool taking its new
pin from the joint ledger the upgrade leaves while keeping the source as
that ledger records it, relative to its own directory. Every other effect of
the plan is kept as it was.
10 imports
import Base import ../ledger/manifest.bend as M import ../ledger/render.bend as Rend import ../toml/toml.bend as T import ../lock/world.bend as LW import ../lock/plan.bend as LP import ../pkg/pkg.bend as K import ./workspace.bend as W import ./joint.bend as J import ./moved.bend as Mv
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}