-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
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
Bug: Missing license information still not allowed in crates from a private registry #736
Comments
The check for private licenses uses the Does |
I've tried a build from the latest commit f6e40d8 ignore-sources = [
"git+ssh://[email protected]/internal_package1.git"
] worked for me to fix this case:
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
BTW, the error shows |
I found that if the private package's manifest doesn't contain the # Cargo.toml in my private package
[package]
# ...
publish = [
"my.private.registry.com"
]
# ... with "my.private.registry.com" added in OR # Cargo.toml in my private package
[package]
# ...
publish = false
# ... Then in deny you don't have to do anything other than setting In other words,
If someone can confirm that my understanding of everything here is correct, I'd be happy to make a doc contribution with some clear examples of how each of these is meant to be used and create that other bug (if it is indeed a bug). |
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: