def hub.how

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

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

308# a hub package, by how it arrived. Only the hub serves one.
309def hub.how(how: How, +hash: String, +manifest: String, +ss: List<&2, String>) -> Verdict:
310  match how:
311    case Lib{}:
312      No{"ez: " ++ hash ++ " is a hub package and was not served by the hub"}
313    case Clone{_got}:
314      No{"ez: " ++ hash ++ " is a hub package and was not served by the hub"}
315    case Served{}:
316      body(hash, manifest, ss)

Uses (6)

Used by (2)