File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1062,8 +1062,17 @@ fn main_result() -> anyhow::Result<i32> {
1062
1062
let rustdoc = sub_m. value_of ( "RUSTDOC" ) ;
1063
1063
check_installed ( "valgrind" ) ?;
1064
1064
check_installed ( "cg_annotate" ) ?;
1065
- check_installed ( "rustup-toolchain-install-master" ) ?;
1066
1065
check_installed ( "rustfilt" ) ?;
1066
+ // Avoid just straight running rustup-toolchain-install-master which
1067
+ // will install the current master commit (fetching quite a bit of
1068
+ // data, including hitting GitHub)...
1069
+ if Command :: new ( "rustup-toolchain-install-master" )
1070
+ . arg ( "-V" )
1071
+ . output ( )
1072
+ . is_err ( )
1073
+ {
1074
+ anyhow:: bail!( "rustup-toolchain-install-master is not installed but must be" ) ;
1075
+ }
1067
1076
1068
1077
let id1 = rustc1. strip_prefix ( '+' ) . unwrap_or ( "before" ) ;
1069
1078
let id2 = rustc2. strip_prefix ( '+' ) . unwrap_or ( "after" ) ;
You can’t perform that action at this time.
0 commit comments