From c10f5a675cc268260898c73451b7b6ebf66ca627 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Thu, 30 Apr 2026 13:26:39 +0200 Subject: [PATCH] fix: fixes tests on windows --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 84cfe2ff..8d6a15cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -148,7 +148,8 @@ fn main() -> Result<(), Box> { std::process::exit(1); }); - let (context_path, alias) = if let Some((ctx_str, alias_str)) = left_side.split_once(':') { + // Use the right most `:` because on Windows, there might be a drive letter, e.g. C:\ + let (context_path, alias) = if let Some((ctx_str, alias_str)) = left_side.rsplit_once(':') { // Specific context provided (e.g., merkle:base_math=...) // We convert it to PathBuf so it shares the same type as main_path let canon_path = CanonPath::canonicalize(Path::new(ctx_str))?;