File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: { args:: Args , builder:: Builder , config, ErrorMessage } ;
2
- use std:: { path:: PathBuf , process } ;
2
+ use std:: path:: PathBuf ;
3
3
4
4
pub ( crate ) fn build ( mut args : Args ) -> Result < ( ) , ErrorMessage > {
5
5
let builder = Builder :: new ( args. manifest_path ( ) . clone ( ) ) ?;
@@ -15,8 +15,6 @@ pub(crate) fn build_impl(
15
15
args : & Args ,
16
16
quiet : bool ,
17
17
) -> Result < Vec < PathBuf > , ErrorMessage > {
18
- run_cargo_fetch ( & args) . map_err ( |( ) | "cargo fetch failed" ) ?;
19
-
20
18
let executables = builder. build_kernel ( & args. cargo_args , quiet) ?;
21
19
if executables. len ( ) == 0 {
22
20
Err ( "no executables built" ) ?;
@@ -40,16 +38,3 @@ pub(crate) fn build_impl(
40
38
Ok ( bootimages)
41
39
}
42
40
43
- fn run_cargo_fetch ( args : & Args ) -> Result < ( ) , ( ) > {
44
- let mut command = process:: Command :: new ( "cargo" ) ;
45
- command. arg ( "fetch" ) ;
46
- if let Some ( manifest_path) = args. manifest_path ( ) {
47
- command. arg ( "--manifest-path" ) ;
48
- command. arg ( manifest_path) ;
49
- }
50
- if command. status ( ) . map ( |s| s. success ( ) ) . unwrap_or ( false ) {
51
- Ok ( ( ) )
52
- } else {
53
- Err ( ( ) )
54
- }
55
- }
You can’t perform that action at this time.
0 commit comments