Open
Description
Describe the bug
I've tried to configure it to ignore licenses from a private registry:
[licenses.private]
ignore = true
registries = [
"http://private.example.com/"
# "sparse+http://private.example.com/" # tried this too
]
but I'm still getting an error about crates not having a license:
error[unlicensed]: internal-only-crate = 1.1.1 is unlicensed
┌─ sparse+http://private.example.com/#[email protected]:2:9
│
2 │ name = "internal-only-crate"
│ ━━━━━━━━━━━ a valid license expression could not be retrieved for the crate
3 │ version = "1.1.1"
4 │ license = ""
│ ─ license expression was not specified
│
├ internal-only-crate v1.1.1
There is no license
or license-file
in Cargo.toml
of that crate, on purpose. It's proprietary, and there's no SPDX identifier for that.
To reproduce
Publish a crate to a private registry (I've used freighter), use it in a workspace, and run cargo deny check
.
cargo-deny version
cargo-deny 0.16.3
What OS were you running cargo-deny on?
MacOS
Additional context
No response