-
Notifications
You must be signed in to change notification settings - Fork 91
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
license-files -> license-file (cannot find proper license file despite it existing) #385
Comments
The Cargo.toml that you seen in the error message is synthesized for error reporting purposes, it's not the actual manifest. The issue is that that package says it has a
|
👋 I'm seeing this same issue with Here's a minimal [package]
name = "license_test"
version = "0.1.0"
edition = "2021"
license = "MIT"
[dependencies]
ring = "0.17.0-alpha.11" [licenses]
allow = [
"Apache-2.0",
"ISC",
"MIT",
]
[[licenses.clarify]]
name = "ring"
expression = "LicenseRef-Ring"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
] The error I'm getting is the same as OP hence the comment on this issue:
|
@rickyhosfelt this is due to you using a pre-release semver, which has non-intuitive complications with wildcard matching, which is tracked in #371. To get around this you can specify the full version in the clarification's version field until #371 is addressed. |
Thanks @Jake-Shadle this works for us! |
I'm trying to run cargo-deny on Bevy, and it's giving me what I think is a false positive - it cannot parse a license file of a package that should have it.
Output:
In particular this stands out:
It mentions
license-files
, but Cargo manifest clearly states this should belicense-file
(without the s): https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields . Perhaps I'm misunderstanding the output.The actual package has the license-file: https://github.com/vislyhq/stretch/blob/master/Cargo.toml#L12 and has had it since 0.3.2 : https://github.com/vislyhq/stretch/blob/0.3.2/Cargo.toml#L12
The text was updated successfully, but these errors were encountered: