From c6efc2c947c4f4a92862e2af220ba6a3b21aba1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Sat, 19 Sep 2020 13:36:10 +0200 Subject: [PATCH] revert part of changes done in #443 due to file mount issues on windows --- src/docker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docker.rs b/src/docker.rs index 02e529a83..00c6d1372 100644 --- a/src/docker.rs +++ b/src/docker.rs @@ -187,10 +187,10 @@ pub fn run(target: &Target, .args(&["-v", &format!("{}:/cargo:Z", cargo_dir.display())]) // Prevent `bin` from being mounted inside the Docker container. .args(&["-v", "/cargo/bin"]) - .args(&["-v", &format!("{}:/{}:Z", mount_root.display(), mount_root.display())]) + .args(&["-v", &format!("{}:/project:Z", mount_root.display())]) .args(&["-v", &format!("{}:/rust:Z,ro", sysroot.display())]) .args(&["-v", &format!("{}:/target:Z", target_dir.display())]) - .args(&["-w", &mount_root.display().to_string()]); + .args(&["-w", "/project"]); if atty::is(Stream::Stdin) { docker.arg("-i");