def weighed.up

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

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

443# what a checkout question was answered with, against the lock's narHash
444def weighed.up(answer: Up.Answer, +hash: String, +nar: String, +url: String, +rev: String) -> String:
445  match answer:
446    case Up.Cloned{+got, _fs}:
447      nar.why(String.is_empty(nar), String.eq(got, nar), hash, nar, got, url, rev)
448    case _:
449      unweighed(hash)

Uses (6)

Used by (1)