-
Notifications
You must be signed in to change notification settings - Fork 61
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
[tvloader] got unknown checksum type SHA512 #96
Comments
Hi @chewong, just to confirm, were you using the SPDX-2.1 parser ( SHA512 wasn't a valid optional checksum in SPDX v2.1 (see SPDX 2.1 spec section 4.4.4) but became valid in v2.2 (see SPDX spec section 4.4.4). That said, looking at the
So I'll mark this as a bug for the v2.2 parser and will address it. Thanks for flagging! |
I am using the SPDX-2.2 parser. Thanks! |
Having now taken a closer look at this (finally): This is a bug which does need to be addressed, because it is causing valid SPDX 2.2 documents not to be parsed. However, I am moving it to the 0.4.0 release milestone. Handling the additional checksums is likely going to require reworking the model for Packages, Files and Snippets to have checksums be handled via a algorithm-to-value map -- rather than separate fields for each possible checksum, as in the current model. This will involve changing the API, as well as reworking the relevant parts of the tag-value, RDF and JSON parsers and savers. I don't want to further delay releasing 0.3.0 with the JSON saver, so I'm going to move this to 0.4.0 and will try to prioritize addressing that shortly after 0.3.0 goes out the door. |
I'm also asking for support for other hash types in the parser. |
This text file is an example which has this problem, for your testing purposes. Apologies for it's 3.2mb size. |
@justinabrahms -- is this failing for you with the same error, that |
@kzantow For some reason, I was on |
Unable to parse the following SPDX file with
tvloader
package:Got the following error:
The text was updated successfully, but these errors were encountered: