Comments (6)
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.
Can you please release a new version with a fixed Cargo.lock/toml
?
from loop.
cargo install
is still failing.
from loop.
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.
Hm, thanks for reporting this.
from loop.
Can you please release a new version with a fixed
Cargo.lock/toml
?
Please
from loop.
Related Issues (20)
- If multiple non-option arguments are passed, treat them as a command HOT 6
- offset and count-by are not working as expected. HOT 2
- Make and Distribute Debian Package HOT 12
- Compilation errors in Debian 9 HOT 1
- Normalize Usage in Readme
- stdin Broken HOT 1
- Floating Point Issues When Counting By Floats
- Duration/Until Time Appears To Have An Extra First Iteration
- How to pass through stdout? HOT 5
- Parallel execution HOT 4
- cat items | loop -- echo $ITEM broken?
- --until-changes and --until-same have the same documentation
- Error codes in summary are reported as negative numbers
- Continuous output during execution and refactoring HOT 2
- Could not compile `loop-rs`
- Please create a release and release tag
- Errors running `cargo test`
- Exponential Backoff HOT 1
- Maintainer Needed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loop.