def ask.anchored
import ezx@1.11.0.0/src/fetch/plan.bend as Planimport Base
import ezx@1.11.0.0/src/fetch/world.bend as F
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/pkg/path.bend as Path
950# whether a git question asks for the source the lock records for its
951# package, taken from the project: the lock's url anchored at `here`
952def ask.anchored(+here: String, src: L.Src, ask: F.Ask) -> Bool:
953 match ask:
954 case F.Git{_hash, q}:
955 String.eq(clone.url(q), Path.anchor(here, L.src.url(src)))
956 case _:
957 True{}