def reclone.how

ezx@1.11.0.0 · src/lock/world.bend:539

import ezx@1.11.0.0/src/lock/world.bend as World
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L

539# one answer as a fresh clone would have it: a tree read from BEND_LIB is
540# instead cloned at the rev the ledger pins and weighed to the narHash the
541# ledger records. Anything else is what it was.
542def reclone.how(how: How, +src: L.Src) -> How:
543  match how:
544    case Lib{}:
545      Clone{L.src.nar(src)}
546    case Clone{got}:
547      Clone{got}
548    case Served{}:
549      Served{}

Uses (3)

Used by (1)