osmosis-labs / beaker

Beaker helps streamlining CosmWasm development workflow.
Apache License 2.0
106 stars 30 forks source link

cargo install fails #120

Closed dzmitry-lahoda closed 1 year ago

dzmitry-lahoda commented 1 year ago
   Compiling cargo-generate v0.15.2
error[E0283]: type annotations needed
   --> /home/dz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-generate-0.15.2/src/lib.rs:354:39
    |
354 |         let file_path = search_folder.join(name.borrow());
    |                                       ^^^^      ------ type must be known at this point
    |                                       |
    |                                       cannot infer type of the type parameter `P` declared on the method `join`
    |
    = note: multiple `impl`s satisfying `str: Borrow<_>` found in the following crates: `bstr`, `core`:
            - impl Borrow<bstr::bstr::BStr> for str;
            - impl<T> Borrow<T> for T
              where T: ?Sized;
help: consider specifying the generic argument
    |
354 |         let file_path = search_folder.join::<&Borrowed>(name.borrow());
    |                                           +++++++++++++

For more information about this error, try `rustc --explain E0283`.
error: could not compile `cargo-generate` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `beaker v0.1.5`, intermediate artifacts can be found at `/tmp/cargo-installhaoPLv`
dz@pop-os:~/github.com/dzmitry-lahoda-forks/beaker$ 

please specify exact rust version to use

sundaycoderock commented 1 year ago

no fix for this??? i have the same issue

iboss-ptk commented 1 year ago

Should be fixed by 0.1.6, let me know if the problem still persist.

dzmitry-lahoda commented 1 year ago

fixed. thank you