def anchor
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
201# a source as the directory `here` reads it. The ledger keeps a local path
202# relative to the project, the way it was given, and git reads a relative path
203# from somewhere else, so every git command is handed this instead. A URL is
204# the same wherever it is read from.
205def anchor(+here: String, +path: String) -> String:
206 anchor.at(String.contains(path, "://"), here, path)