Skip to content
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

[issue-649] fix TV-parser #651

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

meretp
Copy link
Collaborator

@meretp meretp commented May 12, 2023

With this PR we log an error if the build of a contains relationship fails due to a non-parseable preceding package.

fixes #649

@meretp meretp force-pushed the issue_649_fix_tv_parser branch from ba9fd6c to 7936a62 Compare May 12, 2023 09:39
Copy link
Collaborator

@armintaenzertng armintaenzertng left a comment

Choose a reason for hiding this comment

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

Thanks for catching and fixing this bug! :)

]
)
with pytest.raises(SPDXParsingError) as err:
_ = parser.parse(document_str)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
_ = parser.parse(document_str)
parser.parse(document_str)

Assignments are not mandatory.

Copy link
Collaborator Author

@meretp meretp May 12, 2023

Choose a reason for hiding this comment

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

fixed and force-pushed, so I need another approval 😇

…ue to a non-parseable preceding package

Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
@meretp meretp merged commit 435b0e8 into spdx:main May 12, 2023
@meretp meretp deleted the issue_649_fix_tv_parser branch May 12, 2023 11:56
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.

TV-Parser raises IndexError if package has no SPDXID
2 participants