def walked

ezx@1.11.0.0 · src/ws/joint.bend:432

import ezx@1.11.0.0/src/ws/joint.bend as Joint
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
import ezx@1.11.0.0/src/pkg/pkg.bend as K

432# a member's package, walked, as the dependency on it: the walk's hash, the
433# entry it walked from, the directory it writes its paths from, and the name
434# it is imported by, "" when it is imported by its hash
435def walked(got: K.Walked, +name: String, +entry: String, +nv: String) -> Res:
436  match got:
437    case K.Walked{hash, root, _fs, _sums}:
438      Got{M.Dep{name, hash, entry, M.Member{root, nv}}}
439    case K.Asks{at}:
440      Bad{"ez: workspace member " ++ name ++ " imports " ++ at ++ ", which git does not track"}
441    case K.Refused{why}:
442      Bad{why}

Uses (6)

Used by (1)