def member.how

ezx@1.11.0.0 · src/lock/world.bend:318

import ezx@1.11.0.0/src/lock/world.bend as World
import Base

318# a workspace member's package, by how it arrived. Its tree is the committed
319# one, read from the workspace as a tree under BEND_LIB is read, and judged
320# by its bytes alone, as any tree there is; only the hub could serve it
321# under another rule.
322def member.how(how: How, +hash: String, +manifest: String, +ss: List<&2, String>) -> Verdict:
323  match how:
324    case Lib{}:
325      body(hash, manifest, ss)
326    case Clone{_got}:
327      body(hash, manifest, ss)
328    case Served{}:
329      No{"ez: " ++ hash ++ " is a workspace member and was not read from the workspace"}

Uses (6)

Used by (1)