def hub.why

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

import ezx@1.11.0.0/src/lock/world.bend as World
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/share/say.bend as Say

341# why a hub package could not be read. One the ledger names is explained the
342# way a hub miss always was. One it does not name is said to be unnamed, since
343# that, and not the hub, is what a person has to fix.
344def hub.why(named: Bool, +hash: String, +hub: String, +why: String) -> String:
345  match named:
346    case True{}:
347      Say.hub.explain(hash, L.url_of(hub, hash, "manifest"), why)
348    case False{}:
349      "ez: " ++ hash ++ " is imported, ez.toml does not name it, and the hub at " ++
350        hub ++ " did not serve it (" ++ why ++ "). A package taken from git is recorded with `ez add`."

Uses (5)

Used by (2)