Skip to main content

load_and_merge

Function load_and_merge 

Source
pub fn load_and_merge(path: &Path) -> Result<(String, Vec<String>), String>
Expand description

Load a workload YAML from disk, follow its extends: chain to completion, and return the merged YAML text ready for parse::parse_workload, plus any resolution warnings the chain produced (a target name matching multiple resources — see [resolve_extends_target]). Callers surface the warnings on their own channel; dropping them silently is a bug.

The returned text has every extends: directive stripped.