From a9ac71a4f2b004e7a97040a51ab6543d07556bed Mon Sep 17 00:00:00 2001 From: Iscreamx Date: Thu, 27 Nov 2025 15:32:12 +0800 Subject: [PATCH] fix AXVISOR_VM_CONFIGS separator (#308) * fix AXVISOR_VM_CONFIGS separator * fix: use std::env::join_paths for AXVISOR_VM_CONFIGS --- xtask/src/tbuld.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xtask/src/tbuld.rs b/xtask/src/tbuld.rs index 539913f8..bcb9a555 100644 --- a/xtask/src/tbuld.rs +++ b/xtask/src/tbuld.rs @@ -78,11 +78,10 @@ impl Context { } if !vm_config_paths.is_empty() { - let value = vm_config_paths - .iter() - .map(|p| format!("{}", p.display())) - .collect::>() - .join(";"); + 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(); cargo.env.insert("AXVISOR_VM_CONFIGS".to_string(), value); }