Giter VIP home page Giter VIP logo

Comments (6)

gaetronik avatar gaetronik commented on August 11, 2024 1

I've made some tests. The issue is related to structopt-derive not being semver compliant. In Cargo.lock the current version is 0.2.10. Without a Cargo.lock installed version is v0.2.18.
Builds on on a git clone works since we clone Cargo.lock with it, cargo install don't do so. I'll open a PR to fix it

from loop.

klingtnet avatar klingtnet commented on August 11, 2024 1

Can you please release a new version with a fixed Cargo.lock/toml?

from loop.

mrcnski avatar mrcnski commented on August 11, 2024 1

cargo install is still failing.

from loop.

klingtnet avatar klingtnet commented on August 11, 2024

I can not confirm that installing from master works:

$ cargo install --git https://github.com/Miserlou/Loop.git --rev master    
    Updating git repository `https://github.com/Miserlou/Loop.git`
  Installing loop-rs v0.6.1 (https://github.com/Miserlou/Loop.git?rev=master#3946cf4f)
    Updating crates.io index
   Compiling libc v0.2.62
   Compiling getrandom v0.1.10
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling cfg-if v0.1.9
   Compiling syn v0.15.44
   Compiling memchr v2.2.1
   Compiling ppv-lite86 v0.2.5
   Compiling bitflags v1.1.0
   Compiling lazy_static v1.3.0
   Compiling unicode-segmentation v1.3.0
   Compiling unicode-width v0.1.5
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.1
   Compiling strsim v0.8.0
   Compiling remove_dir_all v0.5.2
   Compiling regex-syntax v0.6.11
   Compiling quick-error v1.2.2
   Compiling thread_local v0.3.6
   Compiling textwrap v0.11.0
   Compiling c2-chacha v0.2.2
   Compiling heck v0.3.1
   Compiling humantime v1.2.0
   Compiling atty v0.2.13
   Compiling subprocess v0.1.18
   Compiling aho-corasick v0.7.6
   Compiling clap v2.33.0
   Compiling rand_core v0.5.0
   Compiling quote v0.6.13
   Compiling rand_chacha v0.2.1
   Compiling rand v0.7.0
   Compiling tempfile v3.1.0
   Compiling regex v1.2.1
   Compiling structopt-derive v0.2.18
   Compiling structopt v0.2.18
   Compiling loop-rs v0.6.1 (https://github.com/Miserlou/Loop.git?rev=master#3946cf4f)
error[E0631]: type mismatch in function arguments
   --> /home/anli/.cargo/git/checkouts/loop-db3ec4f8c7a50994/3946cf4/src/main.rs:226:10
    |
226 | #[derive(StructOpt, Debug)]
    |          ^^^^^^^^^ expected signature of `fn(&str) -> _`
...
336 | fn get_values(input: &&str) -> Vec<String> {
    | ------------------------------------------ found signature of `for<'r, 's> fn(&'r &'s str) -> _`

error[E0631]: type mismatch in function arguments
   --> /home/anli/.cargo/git/checkouts/loop-db3ec4f8c7a50994/3946cf4/src/main.rs:226:10
    |
226 | #[derive(StructOpt, Debug)]
    |          ^^^^^^^^^ expected signature of `fn(&str) -> _`
...
328 | fn get_error_code(input: &&str) -> ErrorCode {
    | -------------------------------------------- found signature of `for<'r, 's> fn(&'r &'s str) -> _`

error: aborting due to 2 previous errors

error: failed to compile `loop-rs v0.6.1 (https://github.com/Miserlou/Loop.git?rev=master#3946cf4f)`, intermediate artifacts can be found at `/tmp/cargo-installXYVF9m`

Caused by:
  Could not compile `loop-rs`.

To learn more, run the command again with --verbose.

Here's my Rust toolchain:

$ rustup show
Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-apple-darwin
stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu

installed targets for active toolchain
--------------------------------------

x86_64-apple-darwin
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.36.0 (a53f9df32 2019-07-03)

from loop.

Miserlou avatar Miserlou commented on August 11, 2024

Hm, thanks for reporting this.

from loop.

mrcnski avatar mrcnski commented on August 11, 2024

Can you please release a new version with a fixed Cargo.lock/toml?

Please 🙏 Installing with cargo fails for Rust 1.46.

from loop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.