Skip to content

Conversation

@tamilari
Copy link
Contributor

@tamilari tamilari commented Nov 28, 2025

In my opinion, it is really valuable to test cdx and spdx individually. But I don't really like the idea of uninstalling a specific package, neither only testing one individually (and the other one with both dependencies installed), nor reinstalling everything. Any opinions?

Depends on #134

Previously, both libraries were always required, even if a user only
intended to use one format, which would lead to errors if the unused
dependency was missing. Now, users only need to install the specific
dependency for the SBOM format they wish to use. This also means that
missing dependency errors are now more precise, occurring only when a
user tries to execute a command for a format whose required library is
not installed.
This update may simplify packaging efforts for
distributions like Debian, as `debsbom` can now be packaged with just
`python3-cyclonedx-lib` even if a `spdx-tools` package is not yet
available.

Signed-off-by: Tamino Larisch <[email protected]>
Ensure each SBOM type generates without dependencies for the other
format. This prevents accidental imports of uninstalled optional
dependencies from common code paths, ensuring strict adherence to each
type's specific requirements.

Signed-off-by: Tamino Larisch <[email protected]>
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.

1 participant