File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,11 @@ impl Toolchain {
155
155
// This nop cargo command is to update the registry
156
156
// so we don't have to do it for each crate.
157
157
let toolchain_arg = "+" . to_string ( ) + & self . rustup_name ( ) ;
158
- let full_args = [ & toolchain_arg, "search" , "lazy_static" ] ;
159
- RunCommand :: new ( & installed_binary ( "cargo" ) , & full_args)
158
+ // using `install` is a temporary solution until
159
+ // https://github.com/rust-lang/cargo/pull/5961
160
+ // is ready
161
+ let full_args = [ & toolchain_arg, "install" , "lazy_static" ] ;
162
+ let _ = RunCommand :: new ( & installed_binary ( "cargo" ) , & full_args)
160
163
. local_rustup ( )
161
164
. quiet ( true )
162
165
. run ( )
@@ -165,7 +168,11 @@ impl Toolchain {
165
168
"unable to update the index for toolchain {}" ,
166
169
& self . rustup_name( )
167
170
)
168
- } )
171
+ } ) ;
172
+ // ignore the error untill
173
+ // https://github.com/rust-lang/cargo/pull/5961
174
+ // is ready
175
+ Ok ( ( ) )
169
176
}
170
177
}
171
178
You can’t perform that action at this time.
0 commit comments