def name.file
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
589# a name as the pair the `[names]` table writes it as, which is the shape a
590# file of a package is written in: its `<name>@<version>` as a quoted key and
591# its hash as the value
592def name.file(name: Name) -> K.Item:
593 Name{nv, hash} = name
594 K.Item{nv, hash}