File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ use std::{
4
4
ffi:: { OsStr , OsString } ,
5
5
fmt:: { Display , Formatter } ,
6
6
path:: Path ,
7
- process:: Command ,
8
7
} ;
9
8
10
9
use color_eyre:: {
11
10
eyre:: { bail, Context , ContextCompat } ,
12
11
Result ,
13
12
} ;
14
13
use pathdiff:: diff_paths;
14
+ use tokio:: process:: Command ;
15
15
16
16
use crate :: { data_home:: get_data_home, sdk:: download_and_install} ;
17
17
@@ -73,14 +73,13 @@ impl Cargo {
73
73
Host :: Remote => {
74
74
let mut command =
75
75
Command :: new ( repository_root. as_ref ( ) . join ( "scripts/remoteWorkspace" ) ) ;
76
- command
76
+
77
+ let status = command
77
78
. arg ( "pepsi" )
78
79
. arg ( "sdk" )
79
80
. arg ( "install" )
80
81
. arg ( "--version" )
81
- . arg ( version) ;
82
-
83
- let status = tokio:: process:: Command :: from ( command)
82
+ . arg ( version)
84
83
. status ( )
85
84
. await
86
85
. wrap_err ( "failed to run pepsi" ) ?;
Original file line number Diff line number Diff line change @@ -112,13 +112,13 @@ pub async fn cargo<CargoArguments: Args + CargoCommand>(
112
112
113
113
arguments. cargo . apply ( & mut cargo) ;
114
114
115
- let cargo_command = cargo
115
+ let mut cargo_command = cargo
116
116
. command ( & repository_root, compiler_artifacts)
117
117
. wrap_err ( "failed to create cargo command" ) ?;
118
118
119
119
debug ! ( "Running `{cargo_command:?}`" ) ;
120
120
121
- let status = tokio :: process :: Command :: from ( cargo_command)
121
+ let status = cargo_command
122
122
. status ( )
123
123
. await
124
124
. wrap_err ( "failed to run cargo" ) ?;
You can’t perform that action at this time.
0 commit comments