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

Cargo geiger doesnt take into account [[bin]] and [lib] properties in Cargo.toml #293

Open
najamelan opened this issue Apr 29, 2022 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@najamelan
Copy link

najamelan commented Apr 29, 2022

I have a library that does not live in "/src/lib.rs" and cargo-geiger chokes with:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }, "/<redacted>/src/lib.rs")', /home/<redacted>/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/cargo-geiger-0.11.2/src/scan/default.rs:106:59

Also passing the library name as parameter to the --package flag does not help.

ps: After running cargo clean the problem is resolved. I have a shared target directory with CARGO_TARGET_DIR pointing to a ramdisk. That seems to provoke this. Feel free to close if that is not supported behavior.

@pinkforest pinkforest added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels May 4, 2022
@pinkforest
Copy link
Collaborator

Good catch - Feel free to send a PR - would be very welcome - Thanks :)

This whole thing is rewritten for 0.12 though but bug fix for current 0.11 is welcome too if you are up to it

@kellytk
Copy link

kellytk commented Aug 5, 2022

cargo clean resolved the issue for me as well, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants