@@ -78,18 +78,8 @@ pub fn run(target: &Target,
78
78
} ;
79
79
cmd. args ( args) ;
80
80
81
- // We create/regenerate the lockfile on the host system because the Docker
82
- // container doesn't have write access to the root of the Cargo project
83
- let cargo_toml = root. join ( "Cargo.toml" ) ;
84
-
85
81
let runner = None ;
86
82
87
- Command :: new ( "cargo" ) . args ( & [ "fetch" ,
88
- "--manifest-path" ,
89
- & cargo_toml. display ( ) . to_string ( ) ] )
90
- . run ( verbose)
91
- . chain_err ( || "couldn't generate Cargo.lock" ) ?;
92
-
93
83
let mut docker = docker_command ( "run" ) ?;
94
84
95
85
if let Some ( toml) = toml {
@@ -144,7 +134,7 @@ pub fn run(target: &Target,
144
134
. args ( & [ "-v" , & format ! ( "{}:/cargo:Z" , cargo_dir. display( ) ) ] )
145
135
// Prevent `bin` from being mounted inside the Docker container.
146
136
. args ( & [ "-v" , "/cargo/bin" ] )
147
- . args ( & [ "-v" , & format ! ( "{}:/project:Z,ro " , root. display( ) ) ] )
137
+ . args ( & [ "-v" , & format ! ( "{}:/project:Z" , root. display( ) ) ] )
148
138
. args ( & [ "-v" , & format ! ( "{}:/rust:Z,ro" , sysroot. display( ) ) ] )
149
139
. args ( & [ "-v" , & format ! ( "{}:/target:Z" , target_dir. display( ) ) ] )
150
140
. args ( & [ "-w" , "/project" ] ) ;
0 commit comments