Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skeptic tests fail if crates in ./target were compiled with different version of rustc #57

Closed
budziq opened this issue Sep 4, 2017 · 1 comment

Comments

@budziq
Copy link
Owner

budziq commented Sep 4, 2017

error[E0514]: found crate `skeptic` compiled by an incompatible version of rustc
 --> /tmp/rust-skeptic.kbQ3n75r2js5/test.rs:2:1
  |
2 | extern crate skeptic;
  | ^^^^^^^^^^^^^^^^^^^^^
  |
  = help: please recompile that crate using this compiler (rustc 1.20.0 (f3d6973f4 2017-08-27))
  = note: crate `skeptic` path #1: /home/budziq/git/misc/rust/rust-skeptic/target/debug/deps/libskeptic-860b6c15ce515dac.rlib compiled by "rustc 1.19.0 (0ade33941 2017-07-17)"

error: aborting due to previous error

For now the only solution is to run cargo clean prior to cargo test but it should be possible to examine each crate target triple and compiler info to skip incompatible crates. Using rustc_version crate might be helpful here.

@budziq
Copy link
Owner Author

budziq commented Oct 19, 2017

fixed by #66

@budziq budziq closed this as completed Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant