def made.io
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
import ezx@1.11.0.0/src/pkg/path.bend as P
1316# a walk's verdict as a package, with its root taken back under the checkout
1317# it was read from
1318def made.io(+top: String, got: Walked) -> IO(Pkg):
1319 match got:
1320 case Walked{hash, root, _files, sums}:
1321 IO.pure(Pkg, Pkg{hash, P.join(top, root), files_of(sums)})
1322 case Asks{at}:
1323 IO.die(Pkg, 1, "ez: the walk asked for " ++ at ++ " after it was answered")
1324 case Refused{why}:
1325 IO.die(Pkg, 1, why)