-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
Invalid SPDX with empty file: no SHA1 #3250
Comments
Resulting SPDX file: There are 4 empty files that have no SHA1. |
Thanks for the report! This is tracked here: #461 |
Signed-off-by: Marc-Etienne Vargenau <marc-etienne.vargenau@nokia.com>
I have provided a fix: #3279 The SHA1 for an empty file is hard-coded, there is perhaps a better way to do it. |
Thanks. This works as a fix! In earnest this is a major wart in SPDX. Because of this and a few other, I never saw a package verification code matching when computed by two different tools :] |
@vargenau why not just calculating the sha1 sum for an empty file, like for any other file? I mean I do get the same value as you have hard-coded:
However, that means you have to differentiate between empty and non empty files. |
I will let @pombredanne and @AyanSinhaMahapatra comment. |
Fix #3250: Invalid SPDX with empty file: no SHA1
Description
Generated SPDX is invalid as no SHA1 is provided.
How To Reproduce
System configuration
Ubuntu 22.10
The text was updated successfully, but these errors were encountered: