def pins.go
import ezx@1.11.0.0/src/ws/joint.bend as Jointimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
287# whether every git dependency is pinned as the first declaration of its url
288def pins.go(ds: List<&2, M.Dep>, +all: List<&2, M.Dep>) -> Bool:
289 match ds:
290 case []:
291 True{}
292 case M.Dep{_n, _h, _e, +src} <> tl:
293 rest = pins.go(tl, all)
294 Bool.and(pin.same(src, pin.of(all, M.source.url(src))), rest)