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

fix: prevent errors on metadata handling for some specification versions #330

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

jkowalleck
Copy link
Member

No description provided.

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck force-pushed the fix-specification-specifics-json branch from 460af02 to dc36e27 Compare January 6, 2023 23:10

if not self.bom_metadata_supports_tools():
del bom_json['metadata']['tools']
Copy link
Member Author

@jkowalleck jkowalleck Jan 6, 2023

Choose a reason for hiding this comment

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

this was a delete without checking if bom_json['metadata'] existed in the first place ...
especially when it was just deleted 3 lines before

@jkowalleck jkowalleck marked this pull request as ready for review January 6, 2023 23:23
@jkowalleck jkowalleck requested a review from a team as a code owner January 6, 2023 23:23
@jkowalleck jkowalleck changed the title fix: correct metadata handling for some specification versions fix: prevent exceptions on metadata handling for some specification versions Jan 6, 2023
@jkowalleck jkowalleck changed the title fix: prevent exceptions on metadata handling for some specification versions fix: prevent errors on metadata handling for some specification versions Jan 6, 2023
@jkowalleck
Copy link
Member Author

jkowalleck commented Jan 6, 2023

@madpah FYI

this one needs a forward-port to the next major version

@jkowalleck jkowalleck merged commit f08a656 into main Jan 6, 2023
@jkowalleck jkowalleck deleted the fix-specification-specifics-json branch January 6, 2023 23:28
@jkowalleck jkowalleck mentioned this pull request Jan 6, 2023
@jkowalleck jkowalleck added the bug Something isn't working label Jan 6, 2023
@madpah madpah mentioned this pull request Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant