@@ -133,13 +133,10 @@ fn xargo_version() -> Option<(u32, u32, u32)> {
133
133
( split. next ( ) . expect ( "malformed `xargo --version` output: empty" ) ,
134
134
split. next ( ) . expect ( "malformed `xargo --version` output: not at least two words" ) )
135
135
} ;
136
- if name = = "xargo" {
137
- // This is the upstream version which is currently broken, we need our fork.
136
+ if name ! = "xargo" {
137
+ // This is some fork of xargo
138
138
return None ;
139
139
}
140
- if name != "xargo-rj" {
141
- panic ! ( "malformed `xargo --version` output: application name is not `xargo`" ) ;
142
- }
143
140
let mut version_pieces = version. split ( '.' ) ;
144
141
let major = version_pieces. next ( )
145
142
. expect ( "malformed `xargo --version` output: not a major version piece" )
@@ -185,13 +182,13 @@ fn setup(ask_user: bool) {
185
182
186
183
// First, we need xargo.
187
184
let xargo = xargo_version ( ) ;
188
- if xargo. map_or ( true , |v| v < ( 0 , 3 , 13 ) ) {
185
+ if xargo. map_or ( true , |v| v < ( 0 , 3 , 14 ) ) {
189
186
if ask_user {
190
- ask ( "It seems you do not have a recent enough xargo installed. I will run `cargo install --git https://github.com/RalfJung/ xargo -f`. Proceed?" ) ;
187
+ ask ( "It seems you do not have a recent enough xargo installed. I will run `cargo install xargo -f`. Proceed?" ) ;
191
188
} else {
192
- println ! ( "Installing xargo: `cargo install --git https://github.com/RalfJung/ xargo -f`" ) ;
189
+ println ! ( "Installing xargo: `cargo install xargo -f`" ) ;
193
190
}
194
- if !Command :: new ( "cargo" ) . args ( & [ "install" , "--git" , "https://github.com/RalfJung/ xargo", "-f" ] ) . status ( ) . unwrap ( ) . success ( ) {
191
+ if !Command :: new ( "cargo" ) . args ( & [ "install" , "xargo" , "-f" ] ) . status ( ) . unwrap ( ) . success ( ) {
195
192
show_error ( format ! ( "Failed to install xargo" ) ) ;
196
193
}
197
194
}
0 commit comments