@@ -15,9 +15,10 @@ pub fn clippy() -> FnResult<String> {
15
15
. with_packages ( vec ! [ "curl" , "wget" ] ) ?
16
16
. with_exec ( vec ! [ "type rustup > /dev/null || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" ] ) ?
17
17
. with_exec ( vec ! [ "rustup" , "component" , "add" , "clippy" ] ) ?
18
- . with_exec ( vec ! [ "cargo" , "install" , "clippy-sarif" , "--version" , "0.3.0" ] ) ?
19
- . with_exec ( vec ! [ "cargo" , "install" , "sarif-fmt" , "--version" , "0.3.0" ] ) ?
18
+ . with_exec ( vec ! [ "PATH=$HOME/.cargo/bin:$PATH" , " cargo", "install" , "clippy-sarif" , "--version" , "0.3.0" ] ) ?
19
+ . with_exec ( vec ! [ "PATH=$HOME/.cargo/bin:$PATH" , " cargo", "install" , "sarif-fmt" , "--version" , "0.3.0" ] ) ?
20
20
. with_exec ( vec ! [
21
+ "PATH=$HOME/.cargo/bin:$PATH" ,
21
22
"cargo" ,
22
23
"clippy" ,
23
24
"--all-features" ,
@@ -43,6 +44,7 @@ pub fn llvmcov() -> FnResult<String> {
43
44
. with_exec ( vec ! [ "tar" , "xvf" , "cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz" ] ) ?
44
45
. with_exec ( vec ! [ "mv" , "cargo-llvm-cov" , "/usr/local/bin" ] ) ?
45
46
. with_exec ( vec ! [
47
+ "PATH=$HOME/.cargo/bin:$PATH" ,
46
48
"cargo" ,
47
49
"llvm-cov" ,
48
50
"--all-features" ,
@@ -65,7 +67,7 @@ pub fn test(args: String) -> FnResult<String> {
65
67
. pkgx ( ) ?
66
68
. with_packages ( vec ! [ "curl" , "wget" ] ) ?
67
69
. with_exec ( vec ! [ "type rustup > /dev/null || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" ] ) ?
68
- . with_exec ( vec ! [ "cargo" , "test" , & args] ) ?
70
+ . with_exec ( vec ! [ "PATH=$HOME/.cargo/bin:$PATH" , " cargo", "test" , & args] ) ?
69
71
. stdout ( ) ?;
70
72
Ok ( stdout)
71
73
}
@@ -79,7 +81,7 @@ pub fn build(args: String) -> FnResult<String> {
79
81
. pkgx ( ) ?
80
82
. with_exec ( vec ! [ "pkgx" , "install" , "curl" ] ) ?
81
83
. with_exec ( vec ! [ "type rustup > /dev/null || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" ] ) ?
82
- . with_exec ( vec ! [ "cargo" , "build" , & args] ) ?
84
+ . with_exec ( vec ! [ "PATH=$HOME/.cargo/bin:$PATH" , " cargo", "build" , & args] ) ?
83
85
. stdout ( ) ?;
84
86
Ok ( stdout)
85
87
}
0 commit comments