cargo-geiger icon indicating copy to clipboard operation
cargo-geiger copied to clipboard

assertion failed: self.pending_ids.insert(id)

Open gtema opened this issue 1 month ago • 3 comments

During scanning my repository I get this error:

$ RUST_BACKTRACE=1 cargo geiger
...
thread 'main' (22094439) panicked at /Users/xxx/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cargo-0.86.0/src/cargo/core/package.rs:736:9:
assertion failed: self.pending_ids.insert(id)
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: cargo::core::package::Downloads::start_inner
   4: cargo::core::package::Downloads::start
   5: cargo::core::package::PackageSet::get_many
   6: cargo::ops::cargo_clean::clean
   7: cargo_geiger::scan::rs_file::resolve_rs_file_deps
   8: cargo_geiger::scan::default::scan
   9: cargo_geiger::scan::default::table::scan_to_table
  10: cargo_geiger::scan::scan
  11: cargo_geiger::main

When using on other repository I do not have it, so I assume there is something specific

gtema avatar Nov 10 '25 08:11 gtema

should probably bump the cargo dependency

feel free to send a PR or I can do later

pinkforest avatar Nov 11 '25 06:11 pinkforest

It is already there for quite some time: https://github.com/geiger-rs/cargo-geiger/pull/558

gtema avatar Nov 11 '25 09:11 gtema

Need a new release with this fix

bojankaios avatar Dec 09 '25 06:12 bojankaios