def answer.hubhas

ezx@1.11.0.0 · src/lock/run.bend:383

import ezx@1.11.0.0/src/lock/run.bend as Run
import Base
import ezx@1.11.0.0/src/hub/hub.bend as Web
import ezx@1.11.0.0/src/hub/get.bend as Net
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/lock/up.bend as Up

383# the hub's manifest for a hash a dependency moved to
384def answer.hubhas(+hub: String, +hash: String) -> IO(Up.Answer):
385  do IO<Up.Answer>:
386    g : Web.Got <- Net.fetch(L.url_of(hub, hash, "manifest"), L.want(hash))
387    return Up.HubSaid{g}

Uses (9)

Used by (1)