-
-
Notifications
You must be signed in to change notification settings - Fork 61
fix: properly sort components based on all properties #599
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ee5e8b6
test model
jkowalleck e8f92a1
impl
jkowalleck a7dc327
dict
jkowalleck 2f26241
test res
jkowalleck 5bac91e
test fix
jkowalleck c96412a
test fix
jkowalleck eb4ca72
additional tests
jkowalleck 7165279
tidy
jkowalleck 7403557
fixes
jkowalleck f1fe9c4
fixes
jkowalleck 91277a0
typing backwards compat
jkowalleck 606e751
typing backwards compat
jkowalleck a08419b
fixes
jkowalleck 82ec5e1
fixes
jkowalleck f1036a5
fixes
jkowalleck f8ed58e
fixes
jkowalleck 2f93232
fixes
jkowalleck 5edc940
fixes
jkowalleck ab2a899
chore(ci): Specifiy OS runner for MacOS to avoid latest (version 14) …
madpah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.