def clone.walk
ezx@1.11.0.0 · src/lock/run.bend:184
import ezx@1.11.0.0/src/lock/run.bend as Run
import Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/pkg/pkg.bend as K
import ezx@1.11.0.0/src/lock/world.bend as W
184
185def clone.walk(+work: String, +entry: String, +nar: String) -> IO(W.Answer):
186 do IO<W.Answer>:
187 +p : K.Pkg <- K.pkg_in(work, entry)
188 +fs : List<&2, K.Item> <- IO.pure(List<&2, K.Item>, K.pkg.files(p))
189 ss : List<&2, String> <- disk.all(K.pkg.root(p), fs)
190 _rm : String <- R.exec(["rm", "-rf", work])
191 return W.Got{W.Clone{nar}, K.manifest_of(fs), ss}