def hub.clash
import ezx@1.11.0.0/src/ez/named.bend as Namedimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
237# whether the ledger gives this name to anything but a hub package of this
238# name part: a git dependency, or one added by its hash
239def hub.clash(ds: List<&2, M.Dep>, +name: String, +part: String) -> Bool:
240 match ds:
241 case []:
242 False{}
243 case h <> t:
244 M.Dep{n, _h, _e, s} = h
245 hub.clash.at(String.eq(n, name), s, part, hub.clash(t, name, part))