Skip to content

Commit a9ac71a

Browse files
authored
fix AXVISOR_VM_CONFIGS separator (#308)
* fix AXVISOR_VM_CONFIGS separator * fix: use std::env::join_paths for AXVISOR_VM_CONFIGS
1 parent ef9b629 commit a9ac71a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

xtask/src/tbuld.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ impl Context {
7878
}
7979

8080
if !vm_config_paths.is_empty() {
81-
let value = vm_config_paths
82-
.iter()
83-
.map(|p| format!("{}", p.display()))
84-
.collect::<Vec<_>>()
85-
.join(";");
81+
let value = std::env::join_paths(&vm_config_paths)
82+
.map_err(|e| anyhow::anyhow!("Failed to join VM config paths: {}", e))?
83+
.to_string_lossy()
84+
.into_owned();
8685
cargo.env.insert("AXVISOR_VM_CONFIGS".to_string(), value);
8786
}
8887

0 commit comments

Comments
 (0)