def decide.lock
import ezx@1.11.0.0/src/tool/plan.bend as Planimport Base
import ezx@1.11.0.0/src/tool/world.bend as TW
870# a lock is needed only for a binary that is built, and only by an ez
871# project: a plain repository has none to have
872def decide.lock(missing: Bool, +world: TW.World) -> Verdict:
873 match missing:
874 case True{}:
875 Stop{"ez: " ++ label(world) ++ " has an ez.toml but no ez.lock.toml; its author " ++
876 "runs ez lock to write one"}
877 case False{}:
878 Go{}