def origin
import ezx@1.11.0.0/src/lock/lock.bend as Lockimport Base
314# where a package comes from, which is the hub unless an origin says otherwise
315def origin(ds: List<&2, Origin>, +wanted: String) -> Src:
316 match ds:
317 case []:
318 Hub{}
319 case x <> t:
320 origin.at(x, origin(t, wanted), wanted)