-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly sort components based on all properties (#599)
reverts #587 - as this one introduced errors fixes #598 fixes #586 --------- Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com> Signed-off-by: Paul Horton <paul.horton@owasp.org> Co-authored-by: Paul Horton <paul.horton@owasp.org>
- Loading branch information
1 parent
25ea611
commit 8df488c
Showing
27 changed files
with
835 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...data/snapshots/get_bom_for_issue_598_multiple_components_with_purl_qualifiers-1.0.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.0" version="1"> | ||
<components> | ||
<component type="library"> | ||
<name>dummy</name> | ||
<version>2.3.5</version> | ||
<purl>pkg:pypi/pathlib2@2.3.5?vcs_url=git%2Bhttps://github.com/jazzband/pathlib2.git%405a6a88db3cc1d08dbc86fbe15edfb69fb5f5a3d6</purl> | ||
<modified>false</modified> | ||
</component> | ||
<component type="library"> | ||
<name>dummy</name> | ||
<version>2.3.5</version> | ||
<purl>pkg:pypi/pathlib2@2.3.5</purl> | ||
<modified>false</modified> | ||
</component> | ||
</components> | ||
</bom> |
15 changes: 15 additions & 0 deletions
15
...data/snapshots/get_bom_for_issue_598_multiple_components_with_purl_qualifiers-1.1.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.1" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<components> | ||
<component type="library" bom-ref="dummy-b"> | ||
<name>dummy</name> | ||
<version>2.3.5</version> | ||
<purl>pkg:pypi/pathlib2@2.3.5?vcs_url=git%2Bhttps://github.com/jazzband/pathlib2.git%405a6a88db3cc1d08dbc86fbe15edfb69fb5f5a3d6</purl> | ||
</component> | ||
<component type="library" bom-ref="dummy-a"> | ||
<name>dummy</name> | ||
<version>2.3.5</version> | ||
<purl>pkg:pypi/pathlib2@2.3.5</purl> | ||
</component> | ||
</components> | ||
</bom> |
41 changes: 41 additions & 0 deletions
41
...ata/snapshots/get_bom_for_issue_598_multiple_components_with_purl_qualifiers-1.2.json.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"bom-ref": "dummy-b", | ||
"name": "dummy", | ||
"purl": "pkg:pypi/pathlib2@2.3.5?vcs_url=git%2Bhttps://github.com/jazzband/pathlib2.git%405a6a88db3cc1d08dbc86fbe15edfb69fb5f5a3d6", | ||
"type": "library", | ||
"version": "2.3.5" | ||
}, | ||
{ | ||
"bom-ref": "dummy-a", | ||
"name": "dummy", | ||
"purl": "pkg:pypi/pathlib2@2.3.5", | ||
"type": "library", | ||
"version": "2.3.5" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "dummy-a" | ||
}, | ||
{ | ||
"ref": "dummy-b" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2023-01-07T13:44:32.312678+00:00", | ||
"tools": [ | ||
{ | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "TESTING" | ||
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.2" | ||
} |
29 changes: 29 additions & 0 deletions
29
...data/snapshots/get_bom_for_issue_598_multiple_components_with_purl_qualifiers-1.2.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.2" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<metadata> | ||
<timestamp>2023-01-07T13:44:32.312678+00:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>CycloneDX</vendor> | ||
<name>cyclonedx-python-lib</name> | ||
<version>TESTING</version> | ||
</tool> | ||
</tools> | ||
</metadata> | ||
<components> | ||
<component type="library" bom-ref="dummy-b"> | ||
<name>dummy</name> | ||
<version>2.3.5</version> | ||
<purl>pkg:pypi/pathlib2@2.3.5?vcs_url=git%2Bhttps://github.com/jazzband/pathlib2.git%405a6a88db3cc1d08dbc86fbe15edfb69fb5f5a3d6</purl> | ||
</component> | ||
<component type="library" bom-ref="dummy-a"> | ||
<name>dummy</name> | ||
<version>2.3.5</version> | ||
<purl>pkg:pypi/pathlib2@2.3.5</purl> | ||
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="dummy-a"/> | ||
<dependency ref="dummy-b"/> | ||
</dependencies> | ||
</bom> |
41 changes: 41 additions & 0 deletions
41
...ata/snapshots/get_bom_for_issue_598_multiple_components_with_purl_qualifiers-1.3.json.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"bom-ref": "dummy-b", | ||
"name": "dummy", | ||
"purl": "pkg:pypi/pathlib2@2.3.5?vcs_url=git%2Bhttps://github.com/jazzband/pathlib2.git%405a6a88db3cc1d08dbc86fbe15edfb69fb5f5a3d6", | ||
"type": "library", | ||
"version": "2.3.5" | ||
}, | ||
{ | ||
"bom-ref": "dummy-a", | ||
"name": "dummy", | ||
"purl": "pkg:pypi/pathlib2@2.3.5", | ||
"type": "library", | ||
"version": "2.3.5" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "dummy-a" | ||
}, | ||
{ | ||
"ref": "dummy-b" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2023-01-07T13:44:32.312678+00:00", | ||
"tools": [ | ||
{ | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "TESTING" | ||
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.3a.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.3" | ||
} |
Oops, something went wrong.