def weigh.part

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

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

494# files that arrived stand only when the checkout they came from weighed to
495# the lock's narHash. A tree kept from BEND_LIB was not fetched, and is
496# checked file by file as before.
497def weigh.part(+why: String, part: Part) -> Part:
498  match part:
499    case AskLaid{}:
500      AskLaid{}
501    case AskFetch{}:
502      AskFetch{}
503    case Have{}:
504      Have{}
505    case Got{ls}:
506      weigh.got(String.is_empty(why), why, ls)
507    case No{w}:
508      No{w}

Uses (4)

Used by (1)