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

Bug: panic unable to locate testing for crate #84

Closed
sjudd opened this issue Apr 17, 2024 · 2 comments · Fixed by #98
Closed

Bug: panic unable to locate testing for crate #84

sjudd opened this issue Apr 17, 2024 · 2 comments · Fixed by #98
Labels
bug Something isn't working

Comments

@sjudd
Copy link

sjudd commented Apr 17, 2024

Describe the bug

Cargo panics on a remote git dependency when I run it. The dependency is a git sha in a branch on a public repo (a fork of the original project):

thread '<unnamed>' panicked at /Users/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/krates-0.16.10/src/builder.rs:719:25:
internal error: entered unreachable code: unable to locate testing for crate git+https://github.com/get-convex/qdrant?rev=465cdcb7b1604d057e057edc23e36e951b75c189#[email protected] features([])
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: krates::builder::Builder::build_with_metadata
   3: cargo_deny::common::KrateContext::gather_krates
   4: std::panicking::try
   5: <rayon_core::job::HeapJob<BODY> as rayon_core::job::Job>::execute
   6: rayon_core::registry::WorkerThread::wait_until_cold
   7: rayon_core::registry::ThreadBuilder::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

To reproduce

cargo deny check licenses

I'm sure there's some part of our cargo.toml or deny config that's useful here, happy to try to extract it if so.

cargo-deny version

cargo-deny 0.14.21

What OS were you running cargo-deny on?

MacOS

Additional context

Here's the relevant portion of the Cargo.toml. I'm updating rust (nightly-2024-02-24) and I've updated these dependencies and added a new one on common when doing so. The segment dependency is not new and was working with cargo deny on our previous version of rust

qdrant_segment = { git = "https://github.com/get-convex/qdrant", rev = "465cdcb7b1604d057e057edc23e36e951b75c189", package = "segment" }
qdrant_common = { git = "https://github.com/get-convex/qdrant", rev = "465cdcb7b1604d057e057edc23e36e951b75c189", package = "common" } 
@sjudd sjudd added the bug Something isn't working label Apr 17, 2024
@sjudd
Copy link
Author

sjudd commented Apr 17, 2024

Ok I'm pretty sure this is due to overlapping module names.

The new module in qdrant is named common. We also have a module named common in our crates list. If I rename one module or the other, then the cargo deny error goes away and everything works.

@Jake-Shadle Jake-Shadle transferred this issue from EmbarkStudios/cargo-deny Apr 24, 2024
@Jake-Shadle
Copy link
Member

Can you provide a link to a full cargo.toml/workspace that repros this behavior, I'm missing too much context though I know what needs to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants