Skip to main content

Module roots

Module roots 

Source
Expand description

Path lists (SCHEDR_DAG_PATH, SCHEDR_SCRIPT_PATH) and the roots made from them.

Every entry of a path list is a root, named after its last path component unless renamed (see archive/PROJECT.md, DAG roots and Plain script delivery: script roots). Paths are compared lexically: the configuration is checked without touching the filesystem.

Structs§

PathList
A list of directories, written as an array in TOML or as a PATH-style colon-separated string (/git/dags/a:/git/dags/b) in environment variables.
Root
A named root: one entry of a path list.

Enums§

RootError
Why a path list and its renames don’t make a valid set of roots.

Functions§

check_apart
Script roots and DAG roots named apart (decision 299): a name means one directory in logs, the UI and references.
normalize
path without . components or a trailing separator, for lexical comparison.
resolve_roots
Builds the roots of a path list: checks that no entry is repeated or nested in another, names each entry (its last component, or its rename), and checks that names are unique.