From cefcb28b329f2bafdbdea91190deba7eb528bf01 Mon Sep 17 00:00:00 2001 From: Jalal El Mansouri Date: Sat, 27 Jun 2020 18:29:56 -0400 Subject: [PATCH] Root path fix for windows --- impl/src/planning.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/impl/src/planning.rs b/impl/src/planning.rs index 9d37f1800..af87b3cdf 100644 --- a/impl/src/planning.rs +++ b/impl/src/planning.rs @@ -746,7 +746,9 @@ impl<'planner> CrateSubplanner<'planner> { .into_owned() // TODO(acmcarther): Is this even guaranteed to work? I don't think the `display` output // can be guaranteed.... - .split_off(package_root_path.display().to_string().len() + 1); + .split_off(package_root_path.display().to_string().len() + 1) + // Handle Windows case where we end up here with backslashes + .replace("\\", "/"); // Some crates have a weird prefix, trim that. if package_root_path_str.starts_with("./") {