-
Notifications
You must be signed in to change notification settings - Fork 140
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
Clarify licenseInfoInFiles
#408
Comments
cc'ing @jlovejoy who may have input and historical knowledge here also! For question 1, my view is that yes, According to the spec, Similarly, the If the SPDX creator was trying to communicate that some portions of the file had For question 2, I think Case B is the correct outcome here, for similar reasons as mentioned above. If wanting to retain the precision to indicate All that said, I didn't draft those sections so this is just my view, not authoritative :) |
There is a related discussion issue #49 and #50 which looks like it should be resolved in 3.0. Right now I don't think we have a definitive answer, but I would tend to agree with Steve that Snippets should be used if practical. Knowing how most scanners work, however, it may not be possible to capture the line range to create a snippet. If you can't capture it as a snippet, I would go with Case B in answer to question 2. |
if we capture this via snippets we may think about adding a |
It makes the spec a bit more complex, but it also makes it more consistent. I personally like the consistency. |
@swinslow analysis is correct. I think the spec definitions are clear, but maybe that's because I spent a fair amount of time on them and some example could be used? By way of explanation:
Note, the NOASSERTION was intended as a kind of "I don't know" value stemming from the real possibility that someone didn't even really look at all as indicated by (i) - in which case NONE would not be appropriate. (ii) was allowing it to be used more broadly, I suppose in the case where someone looked a little, but didn't feel comfortable (or the tooling 'wasn't comfortable') with a match. What I don't understand about the original question from @tsteenbe is you state, "NOASSERTION match at line 70" in your example. How can there ever be a "match" for NOASSERTION? That doesn't make sense to me and seems to contradict the definition of NOASSERTION - am I missing something here? I'm also wondering if the spec formatting is causing a bit of confusion. Note the last bit of text, |
While I completely agree that NONE should only have 1 valued, I can see where we might want to use NOASSERTION to indicate there is something, but not sure what - ie. "I don't know". @jlovejoy, @swinslow - if you're not comfortable with that use of NOASSERTION, then what should probably be done is that fragment be converted to a "LicenseRef" and referred to that way? |
@kestewart Given the definitions in 2.2 as the spec currently exists, I don't think that NOASSERTION is intended to be used in this way. A LicenseRef can always be used to indicate whatever the SPDX document creator wants it to indicate, so yes, I expect it could be used as you describe. |
But @swinslow, Clause 10 https://spdx.github.io/spdx-spec/v2-draft/other-licensing-information-detected/ says that
|
Moving to the 3.0 milestone. |
the |
We are implementing SPDX-2.2 in OSS Review Toolkit and we would like some clarifications on how to correctly implement NONE and NOASSERTION in
licenseInfoInFiles
Question 1) Is it correct to assume the NONE must imply that list size is 1? e.g.
and invalid SPDX is
Example say we have file foobar.c and ScanCode returns the following findings
Question 2) is the correct way to encode this in
licenseInfoInFiles
below A) or B)?Based on the text of
licenseInfoInFiles
in SPDX File and SPDX package - I would B is correct but that would mean we lose a NOASSERTION from ScanCode in our SPDX export.Case A
or
Case B
The text was updated successfully, but these errors were encountered: