feat: add trace_path module to get path between two components#185
Merged
Urist-McGit merged 7 commits intomainfrom Mar 4, 2026
Merged
feat: add trace_path module to get path between two components#185Urist-McGit merged 7 commits intomainfrom
Urist-McGit merged 7 commits intomainfrom
Conversation
1dab304 to
e2e68d5
Compare
Member
Author
|
Depends on #186 |
The name is too generic. As a preparation to add more command specific dependencies, we make the name more specific. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
When creating our internal package representation from an CycloneDX or SPDX package, extract the maintainer as well. This information is useful when providing the parsed information to the user. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
e2e68d5 to
455c8a5
Compare
Urist-McGit
reviewed
Mar 4, 2026
Collaborator
Urist-McGit
left a comment
There was a problem hiding this comment.
I am not quite happy with the naming of the subcommand. The help for it says "trace path from component to root". Maybe trace would be a better name? Or backtrace even?
32bd239 to
0f10ace
Compare
Member
Author
As discussed offline, we decided to use |
Urist-McGit
reviewed
Mar 4, 2026
Collaborator
Urist-McGit
left a comment
There was a problem hiding this comment.
In d99da6b you still use the backtrack term in the commit description. Please change it to trace-path.
Otherwise looks good.
Collaborator
|
You forgot to add the new subcommand in the README. |
When working with SBOMs a common task is to analyze dependency chains, e.g. to reason why a package was installed or whom to contact regarding a dependency subtree. For that, we implement the tracepath feature that computes paths between a component and the root component. This command is only available if the optional networkx dependency is also installed. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
0f10ace to
e3c949e
Compare
Urist-McGit
approved these changes
Mar 4, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When working with SBOMs a common task is to analyze dependency chains, e.g. to reason why a package was installed or whom to contact regarding a dependency subtree. For that, we implement the backtrack feature that computes paths between a component and the root component.