We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When running cargo-deny with -f json on the 01_allow_license in this repository, the application panics.
-f json
01_allow_license
The exact error I get is:
thread '<unnamed>' panicked at 'byte index 44 is out of bounds of `[licenses] allow = [ "MIT" ] `', /Users/***/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-deny-0.10.2/src/diag/obj_grapher.rs:150:30 stack backtrace: 0: rust_begin_unwind at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/panicking.rs:517:5 1: core::panicking::panic_fmt at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/core/src/panicking.rs:101:14 2: core::str::slice_error_fail 3: cargo_deny::diag::obj_grapher::cs_diag_to_json 4: cargo_deny::diag::obj_grapher::diag_to_json 5: cargo_deny::common::OutputLock::print_krate_diag 6: cargo_deny::check::print_diagnostics 7: <rayon_core::job::HeapJob<BODY> as rayon_core::job::Job>::execute 8: rayon_core::registry::WorkerThread::wait_until_cold 9: rayon_core::registry::ThreadBuilder::run
To Reproduce
cargo install cargo-deny
examples/01_allow_license
cargo deny -f json check
Expected behavior cargo-deny shouldn't panic and instead produce the expected JSON output.
Device:
The text was updated successfully, but these errors were encountered:
Thanks for the quick fix 🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
When running cargo-deny with
-f json
on the01_allow_license
in this repository, the application panics.The exact error I get is:
thread '<unnamed>' panicked at 'byte index 44 is out of bounds of `[licenses] allow = [ "MIT" ] `', /Users/***/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-deny-0.10.2/src/diag/obj_grapher.rs:150:30 stack backtrace: 0: rust_begin_unwind at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/std/src/panicking.rs:517:5 1: core::panicking::panic_fmt at /rustc/59eed8a2aac0230a8b53e89d4e99d55912ba6b35/library/core/src/panicking.rs:101:14 2: core::str::slice_error_fail 3: cargo_deny::diag::obj_grapher::cs_diag_to_json 4: cargo_deny::diag::obj_grapher::diag_to_json 5: cargo_deny::common::OutputLock::print_krate_diag 6: cargo_deny::check::print_diagnostics 7: <rayon_core::job::HeapJob<BODY> as rayon_core::job::Job>::execute 8: rayon_core::registry::WorkerThread::wait_until_cold 9: rayon_core::registry::ThreadBuilder::run
To Reproduce
cargo install cargo-deny
).examples/01_allow_license
subfolder.cargo deny -f json check
)Expected behavior
cargo-deny shouldn't panic and instead produce the expected JSON output.
Device:
The text was updated successfully, but these errors were encountered: