def tool.verdict

ezx@1.11.0.0 · src/lock/up.bend:962

import ezx@1.11.0.0/src/lock/up.bend as Up
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
import ezx@1.11.0.0/src/ledger/upgrade.bend as U

962# the verdict on a full pin. A pin that moves keeps its own tag, as a
963# dependency does: the tip was named by that tag, or by the default branch
964# for a pin with none.
965def tool.verdict(verdict: U.Verdict, +rs: List<&2, Reply>, +tool: M.Tool, +tip: String, +branch: String) -> Pinned:
966  match verdict:
967    case U.Keep{}:
968      Pinned{tool, False{}, [M.tool.name(tool) ++ ": unchanged " ++
969        M.source.rev(M.tool.source(tool))]}
970    case U.Drift{}:
971      PinHalt{"ez: " ++ M.tool.name(tool) ++ ": narHash drifted at " ++
972        M.source.rev(M.tool.source(tool))}
973    case U.Off{}:
974      +src = M.tool.source(tool)
975      PinHalt{off.why(M.tool.name(tool), M.source.tag(src), M.source.rev(src),
976        tip.of(branch, tip))}
977    case U.Advance{+rev, _tag}:
978      +src = M.tool.source(tool)
979      tool.weighed(weighed(rs, Weigh{M.source.url(src), rev}), tool, rev, "",
980        [say.move(M.tool.name(tool), M.source.rev(src), rev, branch)])

Uses (19)

Used by (2)