def lib.of
import ezx@1.11.0.0/src/tool/plan.bend as Planimport 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"