src/ws/moved.bend fails
raw source on the hub · import ezx@1.10.0.0/src/ws/moved.bend as Moved
ws/moved: a workspace member imported by its hash, once its hash moved
(EZ-WS-7). A member that publishes under no name is imported by its 0x
hash, and editing it moves that hash, so an import line written before the
edit names the hash the lock being rewritten records for it. A plain lock
writes no source (EZ-DOC-5), so it refuses, before it asks anything, and
names the upgrade that rewrites the line. That upgrade rewrites every line
naming a moved member's recorded hash, the way an upgrade rewrites a moved
dependency's (EZ-VEN-2, EZ-VEN-3), and since a member whose files it
rewrote has a new hash in turn, it goes round again until no member it
moves moves any further. Everything here is pure: ws/up.bend plans with it.
9 imports
import Base import ../ledger/manifest.bend as M import ../ledger/upgrade.bend as U import ../lock/lock.bend as L import ../lock/world.bend as LW import ../lock/plan.bend as LP import ../pkg/pkg.bend as K import ../toml/toml.bend as T import ./joint.bend as J
The reader could not load this file (at 0xa75de0623b4b308c27d8fdf1abe399cb/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}