Bug/Problem: When two exceptions are configured for the same license name and different crates, only one exception is used.
bug
### Describe the bug
Not sure if this is a bug or a feature. In deny.toml I have these two exceptions:
```TOML
[[licenses.exceptions]]
allow = ["CDLA-Permissive-2.0"]
name = "webpki-roots"
[[licenses.exceptions]]
allow = ["CDLA-Permissive-2.0"]
name = "webpki-roots-certs"
```
When I am running ```cargo deny check licenses``` I would expect to see no errors but instead I am getting an error
```
error[rejected]: failed to satisfy license requirements
┌─ /home/dawid/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/webpki-root-certs-1.0.7/Cargo.toml:26:12
license = "CDLA-Permissive-2.0"
│ ━━━━━━━━━━━━━━━━━━━
│ │
│ rejected: license is not explicitly allowed
│
├ CDLA-Permissive-2.0 - Community Data License Agreement Permissive 2.0:
├ - No additional metadata available for license
├ webpki-root-certs v1.0.7
```
and a warning
```
warning[license-exception-not-encountered]: license exception was not encountered
┌─ /home/dawid/Workspace/contextforge-gateway-rs/deny.toml:13:9
│
13 │ name = "webpki-roots-certs"
│ ━━━━━━━━━━━━━━━━━━ unmatched license exception
```
I would expect no errors and no warnings. When I remove one of the warnings, it works as expected from ```cargo deny``` perspective. I get one error and no warnings.
### To reproduce
Add two license exceptions for the same license name and different crates.
### cargo-deny version
cargo-deny 0.19.6
### What OS were you running cargo-deny on?
Linux
### Additional context
_No response_
0 条评论