def ask.hash
import ezx@1.11.0.0/src/lock/world.bend as Worldimport 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()