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

cyclonedx packages fails to generate #57

Open
Tim-McDougall opened this issue Oct 23, 2024 · 1 comment
Open

cyclonedx packages fails to generate #57

Tim-McDougall opened this issue Oct 23, 2024 · 1 comment

Comments

@Tim-McDougall
Copy link

In the cyclonedx_parser.py file, when it saves the package metadata, it saves the key of the dictionary as a tuple:

self.packages[(package, version)] = self.cyclonedx_package.get_package()

This is an invalid key when trying to export to json with the generator, and the dumps call will fail with an exception.

@anthonyharrison
Copy link
Owner

Have you got some sample code where it fails? A tuple is a valid key for a Python dictionary

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

No branches or pull requests

2 participants