def made.io

ezx@1.11.0.0 · src/pkg/pkg.bend:1316

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import 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)

Uses (9)

Used by (1)