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
342
343
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`."