Skip to content

Commit 061f787

Browse files
authored
Work around search not updating the index
discussion in rust-lang/cargo#3377 (comment) proper fix in rust-lang/cargo#5961
1 parent 1d3eba4 commit 061f787

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/toolchain.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ impl Toolchain {
155155
// This nop cargo command is to update the registry
156156
// so we don't have to do it for each crate.
157157
let toolchain_arg = "+".to_string() + &self.rustup_name();
158-
let full_args = [&toolchain_arg, "search", "lazy_static"];
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"];
159162
RunCommand::new(&installed_binary("cargo"), &full_args)
160163
.local_rustup()
161164
.quiet(true)

0 commit comments

Comments
 (0)