src/remove/relock.bend fails
raw source on the hub · import ezx@1.10.0.0/src/remove/relock.bend as Relock
remove/relock: ez remove as it runs, the remove and the lock in one plan
(EZ-DOC-6). The remove is planned as before (RP.plan, remove/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 remove
writes, the .bend files git lists, and the lock's answers, which the
lock's interpreter gives as ez lock gives them.
The plan, when both succeed: the remove's effects, then the lock's, the
lock last. When either refuses, a refusal with no effect at all. A .bend
file git lists that still imports the dependency removed makes the lock
refuse, since ez.toml no longer names it, and so the remove.
5 imports
import Base import ./plan.bend as RP import ../lock/plan.bend as P import ../lock/world.bend as W import ../relock/relock.bend as R
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}