def names.outcome

ezx@1.11.0.0 · src/fetch/plan.bend:628

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/plan.bend as P

628# how the names end the fetch: the first that refuses, or `o`, how the
629# packages ended it, which comes first
630def names.outcome(ms: List<&2, Nm>) -> P.Outcome:
631  match ms:
632    case []:
633      P.Success{}
634    case m <> t:
635      match m:
636        case NmStop{why}:
637          P.Refused{why}
638        case NmAsk{nv}:
639          P.Refused{"ez: " ++ nv ++ " was never looked for under BEND_LIB"}
640        case _:
641          names.outcome(t)

Uses (4)

Used by (1)