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 Aug 28, 2021
1 parent 096c480 commit c6efc2c
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 @@ -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");
Expand Down

0 comments on commit c6efc2c

Please sign in to comment.