Skip to content

docs(deny): correct what denies an undeterminable license - #92

Merged
sshaaf merged 1 commit into
sshaaf:mainfrom
nerdalytics:fix/deny-comment-mechanism
Sep 22, 2026
Merged

sshaaf merged 1 commit into
sshaaf:mainfrom
nerdalytics:fix/deny-comment-mechanism

Conversation

@nerdalytics

Copy link
Copy Markdown
Contributor

Description

A comment I added in #89 names the wrong mechanism. It says the allow list rejects a crate whose license cannot be determined, but allow governs licenses that are determined. EmbarkStudios/cargo-deny#611 made deny the new default for unlicensed, and that default is what the removed key was configuring.

Type of Change

  • Documentation update

Changes Made

deny.toml comment. It describes the right behavior with the wrong cause, so anyone reaching for the allow list to change that behavior would edit the wrong line.

Whitespace. #89 also dropped the space in allow = [ by accident, so this restores it.

Testing

This touches the config file only, and the value on the allow line is unchanged. cargo deny check gets past config validation and then needs crates.io, which my network blocks, so I have never seen this repo's policy run to completion.

  • Unit tests added/updated
  • Integration tests added/updated
  • Tested with cargo test
  • Manual testing performed

Test environment:

  • OS: macOS 26.6.2 (Darwin 25.6.0)
  • cargo-deny 0.20.2

Checklist

  • I have performed a self-review of my code
  • I have commented my code where necessary
  • CONTRIBUTING.md guidelines followed
  • All commits are signed and include DCO sign-off

Breaking Changes

None. This changes a comment and one space. No cargo-deny setting changes.

Additional Notes

EmbarkStudios/cargo-deny#611, merged 2024-02-23, lists under unlicensed: "New default of deny, old default was warn."

The comment I added in sshaaf#89 said the `allow` list rejects a crate whose
license cannot be determined. It does not. EmbarkStudios/cargo-deny#611 made
`deny` the new default for `unlicensed`, and that default is what the removed
key was configuring. The outcome was right, the stated mechanism was not.

Also restores the space in `allow = [`, which sshaaf#89 dropped by accident.

Signed-off-by: nerdalytics <97166791+nerdalytics@users.noreply.github.com>
@sshaaf
sshaaf merged commit afe3a68 into sshaaf:main Sep 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants