Skip to content

Fix #3250: Invalid SPDX with empty file: no SHA1 - #3279

Merged
AyanSinhaMahapatra merged 2 commits into
aboutcode-org:developfrom
vargenau:add-sha1-for-empty-file
Mar 28, 2023
Merged

Fix #3250: Invalid SPDX with empty file: no SHA1#3279
AyanSinhaMahapatra merged 2 commits into
aboutcode-org:developfrom
vargenau:add-sha1-for-empty-file

Conversation

@vargenau

Copy link
Copy Markdown
Contributor

Fixes #3250

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁

Signed-off-by: Marc-Etienne Vargenau marc-etienne.vargenau@nokia.com

Signed-off-by: Marc-Etienne Vargenau <marc-etienne.vargenau@nokia.com>

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! let's add a test to avoid any regression.

Signed-off-by: Marc-Etienne Vargenau <marc-etienne.vargenau@nokia.com>
@vargenau

vargenau commented Mar 2, 2023

Copy link
Copy Markdown
Contributor Author

I have added a test that is successful is tests/formattedcode/test_output_spdx.py

However, some tests fails that seem unrelated. Can you please check?

@AyanSinhaMahapatra AyanSinhaMahapatra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vargenau LGTM! Thanks!

The test failures seem to be a heisenbug and happens in other PRs too sometimes, nothing related to this change ofc.

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AyanSinhaMahapatra

Copy link
Copy Markdown
Member

@vargenau Thanks, merging!

@AyanSinhaMahapatra
AyanSinhaMahapatra merged commit 80ecd35 into aboutcode-org:develop Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid SPDX with empty file: no SHA1

3 participants