def tree.entry

ezx@1.11.0.0 · src/lock/run.bend:349

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/lock/up.bend as Up

349# the entry has to be in the checkout for there to be a package to walk
350def tree.entry(ok: Bool, +work: String, +at: String, +url: String, +rev: String, +nar: String) -> IO(Up.Answer):
351  match ok:
352    case True{}:
353      tree.walk(work, at, nar)
354    case False{}:
355      do IO<Up.Answer>:
356        _rm : String <- R.exec(["rm", "-rf", work])
357        return Up.Miss{"ez: " ++ at ++ " is not in " ++ url ++ " at " ++ rev}

Uses (10)

Used by (1)