Skip to content

Commit d0f0c4a

Browse files
committed
revert part of changes done in #443 due to file mount issues on windows
1 parent e88c7b2 commit d0f0c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ pub fn run(target: &Target,
170170
.args(&["-v", &format!("{}:/cargo:Z", cargo_dir.display())])
171171
// Prevent `bin` from being mounted inside the Docker container.
172172
.args(&["-v", "/cargo/bin"])
173-
.args(&["-v", &format!("{}:/{}:Z", mount_root.display(), mount_root.display())])
173+
.args(&["-v", &format!("{}:/project:Z", mount_root.display())])
174174
.args(&["-v", &format!("{}:/rust:Z,ro", sysroot.display())])
175175
.args(&["-v", &format!("{}:/target:Z", target_dir.display())])
176-
.args(&["-w", &mount_root.display().to_string()]);
176+
.args(&["-w", "/project"]);
177177

178178
if atty::is(Stream::Stdin) {
179179
docker.arg("-i");

0 commit comments

Comments
 (0)