def pin.go

ezx@1.11.0.0 · src/tool/plan.bend:98

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

98# a pin the lock has, or a refusal when it has none by that name
99def pin.go(empty: Bool, +tool: M.Tool, +name: String) -> Src:
100  match empty:
101    case True{}:
102      NoSrc{"ez: " ++ name ++ " is not pinned in ez.lock.toml"}
103    case False{}:
104      Pin{name, M.source.url(M.tool.source(tool)), M.source.rev(M.tool.source(tool)),
105        over.of(M.tool.bin(tool), M.tool.entry(tool))}

Uses (11)

Used by (1)