Skip to content

Commit

Permalink
revert part of changes done in cross-rs#443 due to file mount issues …
Browse files Browse the repository at this point in the history
…on windows
  • Loading branch information
Emilgardis committed Sep 19, 2020
1 parent e88c7b2 commit d0f0c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,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");
Expand Down

0 comments on commit d0f0c4a

Please sign in to comment.