-
-
Notifications
You must be signed in to change notification settings - Fork 65
fix: lossless flattening of dependency graph during JSON serialization #993
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
31 commits
Select commit
Hold shift + click to select a range
6ee1f23
Add test example for issue 941
stefan6419846 ca1946f
Merge branch 'main' into issue941-test
jkowalleck 0993a4c
Merge branch 'main' into issue941-test
jkowalleck a26899c
wip: deps flatten
jkowalleck e1b4ab9
fix: json flatten dep graph
jkowalleck 3af721b
refactor
jkowalleck de53cf8
refactor
jkowalleck 70327bc
fix: json flatten and merge dep graph
jkowalleck 293bd75
tests
jkowalleck bda96aa
wip
jkowalleck ab738f1
wip
jkowalleck 6b3894d
wip
jkowalleck 24a06b7
wip
jkowalleck 6223670
wip
jkowalleck 6da7563
docs
jkowalleck 265c4d8
tests
jkowalleck 811127c
tests
jkowalleck c6ff130
tests
jkowalleck 7180274
tests
jkowalleck 649e265
wip
jkowalleck dadcd0b
wip
jkowalleck a208fec
wip
jkowalleck 1afafac
tidy
jkowalleck fd89a41
Merge remote-tracking branch 'origin/main' into fix/dependencygraph-f…
jkowalleck b3e3e62
docs
jkowalleck 3441d97
docs
jkowalleck 896771e
wip
jkowalleck 4663019
docs
jkowalleck 5eb3397
Merge remote-tracking branch 'origin/main' into fix/dependencygraph-f…
jkowalleck 1e9b399
Merge remote-tracking branch 'origin/main' into fix/dependencygraph-f…
jkowalleck 76f1830
Merge remote-tracking branch 'origin/main' into fix/dependencygraph-f…
jkowalleck 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
25 changes: 25 additions & 0 deletions
25
..._data/snapshots/get_bom_for_issue941_nested_dependencies_irreversible_migrate-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,25 @@ | ||
| <?xml version="1.0" ?> | ||
| <bom xmlns="http://cyclonedx.org/schema/bom/1.0" version="1"> | ||
| <components> | ||
| <component type="library"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| <modified>false</modified> | ||
| </component> | ||
| <component type="library"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| <modified>false</modified> | ||
| </component> | ||
| <component type="library"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| <modified>false</modified> | ||
| </component> | ||
| <component type="library"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| <modified>false</modified> | ||
| </component> | ||
| </components> | ||
| </bom> |
21 changes: 21 additions & 0 deletions
21
..._data/snapshots/get_bom_for_issue941_nested_dependencies_irreversible_migrate-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,21 @@ | ||
| <?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="some-library1"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library2"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library3"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library4"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| </component> | ||
| </components> | ||
| </bom> |
73 changes: 73 additions & 0 deletions
73
...data/snapshots/get_bom_for_issue941_nested_dependencies_irreversible_migrate-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,73 @@ | ||
| { | ||
| "components": [ | ||
| { | ||
| "bom-ref": "some-library1", | ||
| "name": "some-library", | ||
| "type": "library", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "bom-ref": "some-library2", | ||
| "name": "some-library", | ||
| "type": "library", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "bom-ref": "some-library3", | ||
| "name": "some-other-library", | ||
| "type": "library", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "bom-ref": "some-library4", | ||
| "name": "some-other-library", | ||
| "type": "library", | ||
| "version": "" | ||
| } | ||
| ], | ||
| "dependencies": [ | ||
| { | ||
| "dependsOn": [ | ||
| "some-library1", | ||
| "some-library2" | ||
| ], | ||
| "ref": "myApp" | ||
| }, | ||
| { | ||
| "dependsOn": [ | ||
| "some-library2" | ||
| ], | ||
| "ref": "some-library1" | ||
| }, | ||
| { | ||
| "dependsOn": [ | ||
| "some-library3", | ||
| "some-library4" | ||
| ], | ||
| "ref": "some-library2" | ||
| }, | ||
| { | ||
| "dependsOn": [ | ||
| "some-library4" | ||
| ], | ||
| "ref": "some-library3" | ||
| }, | ||
| { | ||
| "ref": "some-library4" | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "component": { | ||
| "bom-ref": "myApp", | ||
| "name": "myApp", | ||
| "type": "application", | ||
| "version": "" | ||
| }, | ||
| "timestamp": "2023-01-07T13:44:32.312678+00:00" | ||
| }, | ||
| "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" | ||
| } |
46 changes: 46 additions & 0 deletions
46
..._data/snapshots/get_bom_for_issue941_nested_dependencies_irreversible_migrate-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,46 @@ | ||
| <?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> | ||
| <component type="application" bom-ref="myApp"> | ||
| <name>myApp</name> | ||
| <version/> | ||
| </component> | ||
| </metadata> | ||
| <components> | ||
| <component type="library" bom-ref="some-library1"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library2"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library3"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library4"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| </component> | ||
| </components> | ||
| <dependencies> | ||
| <dependency ref="myApp"> | ||
| <dependency ref="some-library1"> | ||
| <dependency ref="some-library2"> | ||
| <dependency ref="some-library3"/> | ||
| </dependency> | ||
| </dependency> | ||
| <dependency ref="some-library2"> | ||
| <dependency ref="some-library4"/> | ||
| </dependency> | ||
| </dependency> | ||
| <dependency ref="some-library1"/> | ||
| <dependency ref="some-library2"/> | ||
| <dependency ref="some-library3"> | ||
| <dependency ref="some-library4"/> | ||
| </dependency> | ||
| <dependency ref="some-library4"/> | ||
| </dependencies> | ||
| </bom> |
73 changes: 73 additions & 0 deletions
73
...data/snapshots/get_bom_for_issue941_nested_dependencies_irreversible_migrate-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,73 @@ | ||
| { | ||
| "components": [ | ||
| { | ||
| "bom-ref": "some-library1", | ||
| "name": "some-library", | ||
| "type": "library", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "bom-ref": "some-library2", | ||
| "name": "some-library", | ||
| "type": "library", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "bom-ref": "some-library3", | ||
| "name": "some-other-library", | ||
| "type": "library", | ||
| "version": "" | ||
| }, | ||
| { | ||
| "bom-ref": "some-library4", | ||
| "name": "some-other-library", | ||
| "type": "library", | ||
| "version": "" | ||
| } | ||
| ], | ||
| "dependencies": [ | ||
| { | ||
| "dependsOn": [ | ||
| "some-library1", | ||
| "some-library2" | ||
| ], | ||
| "ref": "myApp" | ||
| }, | ||
| { | ||
| "dependsOn": [ | ||
| "some-library2" | ||
| ], | ||
| "ref": "some-library1" | ||
| }, | ||
| { | ||
| "dependsOn": [ | ||
| "some-library3", | ||
| "some-library4" | ||
| ], | ||
| "ref": "some-library2" | ||
| }, | ||
| { | ||
| "dependsOn": [ | ||
| "some-library4" | ||
| ], | ||
| "ref": "some-library3" | ||
| }, | ||
| { | ||
| "ref": "some-library4" | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "component": { | ||
| "bom-ref": "myApp", | ||
| "name": "myApp", | ||
| "type": "application", | ||
| "version": "" | ||
| }, | ||
| "timestamp": "2023-01-07T13:44:32.312678+00:00" | ||
| }, | ||
| "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" | ||
| } |
46 changes: 46 additions & 0 deletions
46
..._data/snapshots/get_bom_for_issue941_nested_dependencies_irreversible_migrate-1.3.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,46 @@ | ||
| <?xml version="1.0" ?> | ||
| <bom xmlns="http://cyclonedx.org/schema/bom/1.3" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
| <metadata> | ||
| <timestamp>2023-01-07T13:44:32.312678+00:00</timestamp> | ||
| <component type="application" bom-ref="myApp"> | ||
| <name>myApp</name> | ||
| <version/> | ||
| </component> | ||
| </metadata> | ||
| <components> | ||
| <component type="library" bom-ref="some-library1"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library2"> | ||
| <name>some-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library3"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| </component> | ||
| <component type="library" bom-ref="some-library4"> | ||
| <name>some-other-library</name> | ||
| <version/> | ||
| </component> | ||
| </components> | ||
| <dependencies> | ||
| <dependency ref="myApp"> | ||
| <dependency ref="some-library1"> | ||
| <dependency ref="some-library2"> | ||
| <dependency ref="some-library3"/> | ||
| </dependency> | ||
| </dependency> | ||
| <dependency ref="some-library2"> | ||
| <dependency ref="some-library4"/> | ||
| </dependency> | ||
| </dependency> | ||
| <dependency ref="some-library1"/> | ||
| <dependency ref="some-library2"/> | ||
| <dependency ref="some-library3"> | ||
| <dependency ref="some-library4"/> | ||
| </dependency> | ||
| <dependency ref="some-library4"/> | ||
| </dependencies> | ||
| </bom> |
Oops, something went wrong.
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.