def place.of

ezx@1.11.0.0 · src/add/hub.bend:275

import ezx@1.11.0.0/src/add/hub.bend as Hub
import Base
import ezx@1.11.0.0/src/lock/plan.bend as P

275# where the tree is laid: under `.ez/lib` when the entry it replaces is
276# vendored, under BEND_LIB otherwise. A hub dependency is never vendored, so
277# a name the ledger already records is laid under BEND_LIB like a new one.
278def place.of(vend: Bool) -> P.Place:
279  match vend:
280    case True{}:
281      P.Committed{}
282    case False{}:
283      P.Cache{}

Uses (2)

Used by (1)