def readd
import ezx@1.11.0.0/src/ledger/render.bend as Renderimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
131# a dependency added again keeps the `vendor = true` its entry already had.
132# The command line has no way to say it, so a re-add that dropped it would
133# drop the tree from the allowlist without anyone having asked.
134def readd(ds: List<&2, M.Dep>, dependency: M.Dep) -> M.Dep:
135 M.Dep{+n, h, e, s} = dependency
136 M.Dep{n, h, e, revend(M.source.vendor(M.source.dep(M.find(ds, n))), s)}