src/add/relock.bend fails
raw source on the hub · import ezx@1.11.0.0/src/add/relock.bend as Relock
add/relock: ez add as it runs, the add and the lock in one plan
(EZ-DOC-6). The add is planned as before (AP.command, add/plan.bend);
once it is known to succeed, the plain ez lock planner is run over the
World it leaves (R.world, relock/relock.bend): the ledger the add writes,
the .bend files git lists, and the lock's answers. The package the add
walked is handed to the lock as the answer for its hash, read as a tree
under BEND_LIB, which is where the add lays it, so it is not read twice; a
hub package's answers are the ones the add was given. Every other package
the lock asks about is answered by the lock's interpreter as ez lock
answers it.
The plan, when both succeed: the add's effects, a note when the lock does not hold the package added (EZ-DOC-7), then the lock's effects, the lock last. When either refuses, a refusal with no effect at all.
11 imports
import Base import ./world.bend as A import ./plan.bend as AP import ./hub.bend as H import ../lock/plan.bend as P import ../lock/world.bend as W import ../lock/up.bend as Up import ../lock/lock.bend as L import ../ledger/manifest.bend as M import ../pkg/pkg.bend as K import ../relock/relock.bend as R
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}