Run.tree.walk: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 338-347 of ezx@1.11.0.0/src/lock/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/run.bend&start_line=338&end_line=347 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/git/git.bend as Git import ezx@1.11.0.0/src/pkg/pkg.bend as K import ezx@1.11.0.0/src/pkg/path.bend as P import ezx@1.11.0.0/src/lock/up.bend as Up # the checkout's package, walked from its entry the way `ez add` walks it, with # the directory its paths are written from, against the repo def tree.walk(+work: String, +at: String, +nar: String) -> IO(Up.Answer): do IO: +p : K.Pkg <- K.pkg_in(work, at) +fs : List<&2, K.Item> <- IO.pure(List<&2, K.Item>, K.pkg.files(p)) ss : List<&2, String> <- disk.all(K.pkg.root(p), fs) +rt : String <- IO.pure(String, Git.root.rel(P.join(work, at), K.pkg.root(p), at)) _rm : String <- R.exec(["rm", "-rf", work]) return Up.Checkout{nar, rt, K.manifest_of(fs), ss} Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=root.rel https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=disk.all https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/up.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/path.bend&name=join https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Item https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Pkg https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=manifest_of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=pkg.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=pkg.root https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=pkg_in https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec