def lock.within

ezx@1.11.0.0 · src/ws/hop.bend:96

import ezx@1.11.0.0/src/ws/hop.bend as Hop
import Base
import ezx@1.11.0.0/src/pkg/path.bend as P
import ezx@1.11.0.0/src/ws/workspace.bend as W

96# the root a member found, once it is known whether that is where ez runs
97def lock.within(+top: String, root: List<&2, String>, rel: List<&2, String>) -> String:
98  match rel:
99    case []:
100      "ez.lock.toml"
101    case _hd <> _tl:
102      P.join(P.join(top, W.segs.text(root)), "ez.lock.toml")

Uses (4)

Used by (1)