def lib.of

ezx@1.11.0.0 · src/tool/plan.bend:347

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW
import ezx@1.11.0.0/src/ez/target.bend as Tgt

347# the library the checkout's lock is fetched into: the checkout's own for a
348# remote, and one under the cache for a path, which is never written into
349def lib.of(pl: Tgt.Place, +world: TW.World) -> String:
350  match pl:
351    case Tgt.Bad{_why}:
352      ""
353    case Tgt.Local{_p}:
354      dir(world) ++ "/lib"
355    case Tgt.Remote{_url, _slug}:
356      top(world) ++ "/.ez/lib"

Uses (6)

Used by (1)