src/remove/plan.bend fails
raw source on the hub · import ezx@1.10.0.0/src/remove/plan.bend as Plan
remove/plan: ez remove as a pure planner. It asks nothing: its World is
the name asked for, the ledger's text (None when there is no ez.toml) and
.gitignore's text ("" when there is none), and its planner is one function
from that World to a Plan. The interpreter (remove/run.bend) reads the two
files, calls it, and runs what it returns.
The plan, when the ledger reads and names the dependency: ez.toml written
with the dependency dropped (Rend.remove); .gitignore written with the
allowlist I.sync derives from what is left, when that changes it; and
the committed tree .ez/lib/<hash> of a dependency that was vendored
removed, unless a dependency that is left still names that hash. Anything
else is a refusal, with no effect at all: no ledger, one that does not
parse, or a name the ledger does not have, which cargo remove refuses too.
The Effect, Plan and Outcome types are the lock's (lock/plan.bend), which the add design moves to a shared plan/plan.bend later; see "Update (A1, A4)" in docs/rfc/ez-add-planner.md.
5 imports
import Base import ../lock/plan.bend as P import ../ledger/manifest.bend as M import ../ledger/render.bend as Rend import ../ledger/ignore.bend as I
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}