def place.pin

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

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/ez/target.bend as Tgt

147# a pin names a git repository; a path is no pin
148def place.pin(pl: Tgt.Place) -> Tgt.Place:
149  match pl:
150    case Tgt.Bad{why}:
151      Tgt.Bad{why}
152    case Tgt.Local{_p}:
153      Tgt.Bad{"a pinned tool names a git repo"}
154    case Tgt.Remote{url, slug}:
155      Tgt.Remote{url, slug}

Uses (1)

Used by (1)