[BUG] Cargo install of v0.17.3 fails
LennyPenny opened this issue · comments
Describe the bug
Due to #581 I tried the other install method mentioned in the readme, namely to install using cargo install method. However its failing due to missing type annotations.
To Reproduce
Steps to reproduce the behavior:
- use rustup to install a stable toolchain
cargo install wash-cli
- See error:
Compiling clap_complete v4.3.0
error[E0283]: type annotations needed
--> /home/lenny/.cargo/registry/src/github.com-1ecc6299db9ec823/wash-lib-0.8.1/src/generate/mod.rs:319:39
|
319 | let file_path = search_folder.join(name.borrow());
| ^^^^ ------ type must be known at this point
| |
| cannot infer type of the type parameterP
declared on the methodjoin
|
= note: multipleimpl
s satisfyingstr: Borrow<_>
found in the following crates:bstr
,core
:
- impl Borrowbstr::bstr::BStr for str;
- impl Borrow for T
where T: ?Sized;
help: consider specifying the generic argument
|
319 | let file_path = search_folder.join::<&Borrowed>(name.borrow());
| +++++++++++++
For more information about this error, tryrustc --explain E0283
.
error: could not compilewash-lib
due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compilewash-cli v0.17.2
, intermediate artifacts can be found at/tmp/cargo-installm4q12v
Expected behavior
It should compile and install successfully.
**Environment (please complete the following information) **
Thank you for the report @LennyPenny ! This error was fixed in main a couple weeks ago
We should have a new release soon. In the meantime, the 0.18.0-alpha.2
version is available, if you're comfortable running off this alpha release for a little bit
Quick followup: v0.17.4 is a patch release that contains this fix and is currently building 🚀
EDIT: done! The latest wash-cli should be installable with cargo