def lays.one

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

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

910# whether an effect that lays a tree lays the files the lock records under
911# its hash, each with a text whose digest is the lock's sum for it
912def lays.one(+ss: List<&2, T.Sect>, effect: P.Effect) -> Bool:
913  match effect:
914    case P.Lay{_place, hash, fs}:
915      fits(locked(ss, hash), front(fs))
916    case _:
917      True{}

Uses (7)

Used by (1)