We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c4d5e commit 5abf0e1Copy full SHA for 5abf0e1
xtask/src/tbuld.rs
@@ -78,12 +78,10 @@ impl Context {
78
}
79
80
if !vm_config_paths.is_empty() {
81
- let sep = if cfg!(target_os = "windows") { ";" } else { ":" };
82
- let value = vm_config_paths
83
- .iter()
84
- .map(|p| format!("{}", p.display()))
85
- .collect::<Vec<_>>()
86
- .join(&sep);
+ let value = std::env::join_paths(&vm_config_paths)
+ .map_err(|e| anyhow::anyhow!("Failed to join VM config paths: {}", e))?
+ .to_string_lossy()
+ .into_owned();
87
cargo.env.insert("AXVISOR_VM_CONFIGS".to_string(), value);
88
89
0 commit comments