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> {
10621062 let rustdoc = sub_m. value_of ( "RUSTDOC" ) ;
10631063 check_installed ( "valgrind" ) ?;
10641064 check_installed ( "cg_annotate" ) ?;
1065- check_installed ( "rustup-toolchain-install-master" ) ?;
10661065 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+ }
10671076
10681077 let id1 = rustc1. strip_prefix ( '+' ) . unwrap_or ( "before" ) ;
10691078 let id2 = rustc2. strip_prefix ( '+' ) . unwrap_or ( "after" ) ;
You can’t perform that action at this time.
0 commit comments