Skip to main content

validate_mlstack_env

Function validate_mlstack_env 

Source
pub fn validate_mlstack_env(script_name: Option<&str>) -> EnvValidationResult
Expand description

Validate the .mlstack_env file and return resolved variables.

If the file does not exist, auto-detects values from the system. Missing values are filled with sensible defaults. Invalid channel values are corrected to “latest”.

§Validation

  • VAL-INFRA-017: .mlstack_env validation with sensible defaults
  • VAL-INFRA-022: Graceful handling of missing dependencies

This function never panics. If detection fails, defaults are used.