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: internal error: unreachable code: ... #97

Closed
kaspar030 opened this issue Oct 14, 2024 · 0 comments · Fixed by #98
Closed

Bug: internal error: unreachable code: ... #97

kaspar030 opened this issue Oct 14, 2024 · 0 comments · Fixed by #98
Labels
bug Something isn't working

Comments

@kaspar030
Copy link

kaspar030 commented Oct 14, 2024

Describe the bug

Our CI fails with this on some PRs:

Run cargo binstall --no-confirm --no-discover-github-token --force cargo-deny
 INFO resolve: Resolving package: 'cargo-deny'
 WARN The package cargo-deny v0.16.1 (x86_64-unknown-linux-musl) has been downloaded from github.com
 INFO This will install the following binaries:
 INFO   - cargo-deny (cargo-deny -> /home/runner/.cargo/bin/cargo-deny)
 INFO Installing binaries...
 INFO Done in 1.886941248s
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/krates-0.17.1/src/builder.rs:718:25:
internal error: entered unreachable code: unable to locate defmt-03 for crate registry+https://github.com/rust-lang/crates.io-index#embedded-hal@0.2.7 features(["unproven"])
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Process completed with exit code 101.

embedded-hal 0.2.7 indeed doesn't have the defmt-03 feature. embedded-hal 1.0 has, and IIUC both are used at the same time in this case.

To reproduce

I can reproduce quickly on our repo:

git clone https://github.com/ROMemories/RIOT-rs -b feat/spi-main-abstraction
cd RIOT-rs
cargo deny check bans licenses sources

cargo-deny version

v0.16.1

What OS were you running cargo-deny on?

Linux

Additional context

No response

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.

1 participant