src/relock/relock.bend fails
raw source on the hub · import ezx@1.9.0.0/src/relock/relock.bend as Relock
relock: what ez add and ez remove share to leave the lock in step with
the ledger they write (EZ-DOC-6). Each command plans its edit as before;
then the plain ez lock planner (lock/plan.bend) is run over the World the
edit leaves: the ledger the edit writes to ez.toml, the .bend files git
lists, and the answers to the lock's questions. The two plans become one:
the edit's effects, then the lines a person is told about the lock, then the
lock's effects, which write ez.lock.toml last. A lock that refuses refuses
the whole command, with no effect at all, so neither file changes.
A plain lock moves no pin (EZ-DOC-5), so every dependency and tool the edit did not touch keeps the pin it had, and only what the edit changed is read anew.
3 imports
import Base import ../lock/plan.bend as P import ../lock/world.bend as W
The reader could not load this file (at 0x53ca730219156b024641a00935516f18/src/ledger/manifest.bend:31). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
30 | # not be the one.
31>| type Tool is Data:
| ^^^^
32 | Tool{name: String, entry: String, bin: String, source: Source}