File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -141,24 +141,19 @@ impl<'a> Prepare<'a> {
141
141
}
142
142
143
143
fn fetch_deps ( & mut self ) -> Result < ( ) , Error > {
144
- let mut outdated_lockfile = false ;
145
144
let mut missing_deps = false ;
146
145
let res = Command :: new ( self . workspace , self . toolchain . cargo ( ) )
147
- . args ( & [ "fetch" , "--locked" , "-- manifest-path", "Cargo.toml" ] )
146
+ . args ( & [ "fetch" , "--manifest-path" , "Cargo.toml" ] )
148
147
. cd ( & self . source_dir )
149
148
. process_lines ( & mut |line, _| {
150
- if line. ends_with (
151
- "Cargo.lock needs to be updated but --locked was passed to prevent this" ,
152
- ) {
153
- outdated_lockfile = true ;
154
- } else if line. contains ( "failed to load source for dependency" ) {
149
+ if line. contains ( "failed to load source for dependency" ) {
155
150
missing_deps = true ;
156
151
}
157
152
} )
158
153
. run ( ) ;
159
154
match res {
160
155
Ok ( _) => Ok ( ( ) ) ,
161
- Err ( _) if outdated_lockfile && !self . lockfile_captured => {
156
+ Err ( _) if !self . lockfile_captured => {
162
157
info ! ( "the lockfile is outdated, regenerating it" ) ;
163
158
// Force-update the lockfile and recursively call this function to fetch
164
159
// dependencies again.
You can’t perform that action at this time.
0 commit comments