Skip to main content

load_values_for_env

Function load_values_for_env 

Source
pub fn load_values_for_env(
    config_dir: &Path,
    resolved: &ResolvedConfig,
) -> Result<Option<ValuesFile>>
Expand description

Load the per-env values file, tolerating absence.

Missing file โ†’ Ok(None). Unresolved placeholders later (against an empty fallback) will surface as ResolutionFailures with a hint to create the file (see format_failures).

Present-but-malformed โ†’ propagates Error::YamlParse / Error::InvalidFormat (RFC ยง5 Edge cases โ€” abort early, before any API call).