Plan.seen.hash: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/pub/plan.bend as Plan Lines 928-936 of ezx@1.11.0.0/src/pub/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/pub/plan.bend&start_line=928&end_line=936 import Base import ezx@1.11.0.0/src/lock/lock.bend as L import ezx@1.11.0.0/src/share/sha.bend as Sha # a manifest the hub served for a `0x` name: the package is there when the # manifest hashes to the name, as `ez lock` checks it def seen.hash(ok: Bool, +hash: String, +text: String, +who: String) -> Seen: match ok: case True{}: Bool.pick(Seen, String.starts_with(Sha.hex(text), L.want(hash)), There{}, Off{" " ++ who ++ ": the hub served a manifest that does not hash to it"}) case False{}: seen.miss(absent(text), text, who) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=want https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pub/plan.bend&name=Seen https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pub/plan.bend&name=absent https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pub/plan.bend&name=seen.miss https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/sha.bend&name=hex