def ask.hash

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

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

136# what a question asks about, which is the key its answer is judged and
137# looked up under: a package's hash, a name, or the lock's path. A `0x` name,
138# a `<name>@<version>` and the lock's path are three different strings.
139def ask.hash(ask: Ask) -> String:
140  match ask:
141    case Pkg{hash, _src, _hub}:
142      hash
143    case Name{nv, _hub}:
144      nv
145    case Lock{}:
146      lockfile()

Uses (3)

Used by (11)