You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a BOM is typically a JSON or XML document, comparisons using tooling such as diff can be awkward or impractical given JSON and XML themselves as standards allow for ordering to be different (within schema limits) without the representation within the document being different.
For example, the following two samples are equivalent in XML, but would not compare equal if you used a tool such as diff:
<?xml version="1.0" encoding="UTF-8"?>
<book name="CycloneDX Is Epic">
<chapter number="1" title="In the beginning..." />
<chapter number="2" title="CycloneDX is just cool!" />
</book>
<?xml version="1.0" encoding="UTF-8"?>
<book name="CycloneDX Is Epic">
<chapter number="2" title="CycloneDX is just cool!" />
<chapter number="1" title="In the beginning..." />
</book>
This feature proposes adding a sub-command to cyclonedx-py to allow logical comparison of two BOM - perhaps looking like:
Activity
jkowalleck commentedon Sep 10, 2023
why is this needed? this is already a feature of
CycloneDX clisee https://github.com/CycloneDX/cyclonedx-cli
i am tending to close this issue.
jkowalleck commentedon Sep 12, 2023
the feature to compare 2 BOMs already exists in
cyclonedx-clitool.not planned to re-implement it here.