You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to configure it to ignore licenses from a private registry:
[licenses.private]
ignore = trueregistries = [
"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
The text was updated successfully, but these errors were encountered:
cargo deny check licenses
error[unlicensed]: internal_package1 = 0.1.0 is unlicensed
┌─ git+ssh://[email protected]/internal_package1.git?branch=main#[email protected]:2:9
│
2 │ name = "internal_package1"
│ ━━━━━━━━━━━━━ a valid license expression could not be retrieved for the crate
3 │ version = "0.1.0"
4 │ license = ""
│ ─ license expression was not specified
│
but I can't figure out how to allow private packages from the current workspace and a private registry. I've tried all the combinations of registry URLs in licenses.private.registries and licenses.private.ignore-sources.
error[unlicensed]: internal_package2 = 2024.12.5 is unlicensed
┌─ path+file:///Users/me/internal_package2#2024.12.5:2:9
│
2 │ name = "internal_package2"
│ ━━━━━ a valid license expression could not be retrieved for the crate
3 │ version = "2024.12.5"
4 │ license = ""
│ ─ license expression was not specified
│
error[unlicensed]: internal_package3 = 3.2.0 is unlicensed
┌─ sparse+https://internal.registry/index/#[email protected]:2:9
│
2 │ name = "internal_package3"
│ ━━━━━━━━━ a valid license expression could not be retrieved for the crate
3 │ version = "3.2.0"
4 │ license = ""
│ ─ license expression was not specified
│
BTW, the error shows license = "", but the license field is completely absent in Cargo.toml of these packages.
Describe the bug
I've tried to configure it to ignore licenses from a private registry:
but I'm still getting an error about crates not having a license:
There is no
license
orlicense-file
inCargo.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
The text was updated successfully, but these errors were encountered: