(dir: &Path)
| 890 | } |
| 891 | |
| 892 | pub fn validate_runtime_dir(dir: &Path) -> Result<(), String> { |
| 893 | if !dir.is_dir() { |
| 894 | return Err(format!( |
| 895 | "VM runtime not found at {}. Run `mise run vm:setup` or set {VM_RUNTIME_DIR_ENV}", |
| 896 | dir.display() |
| 897 | )); |
| 898 | } |
| 899 | |
| 900 | embedded_runtime::validate_runtime_dir(dir) |
| 901 | } |
| 902 | |
| 903 | pub fn configured_runtime_dir() -> Result<PathBuf, String> { |
| 904 | if let Some(path) = std::env::var_os(VM_RUNTIME_DIR_ENV) { |
no outgoing calls
no test coverage detected