A file that contains imports of all files in the subordinate directory
def Subordinate (file : File) (dir : Directory) := And
(dir.basename = file.basename)
(String.startsWith file dir)
A repo that is listed as a dependency in the child repo lakefile.
def Parent [Coe Repo Url] [Coe Repo Package] [Coe Package (Array Dependency)] (child : Repo) (parent : Repo) :=
let childPkg : Package := ↑child
let parentPkg : Package := ↑parent
let childDeps : Array Dependency := ↑childPkg
childDeps.contains (
match ·.src with
| .path dir => false
| .git url rev subDir => url == ↑parent
)
A repo that lists the parent repo as a dependency in the lakefile.