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
Support for dependency graphs should be included in every official CycloneDX implementation, including this one. Currently, only the Maven plugin supports it.
I'm relying heavily on the community for these types of enhancements. PR's are highly encouraged.
The dependency graph extension should not be used. Rather, the built-in dependency graph elements should be used instead. This is going to require #9 to be implemented.
@stevespringett thanks for the links . Correct me if I am wrong: to translate the v1.2 spec to python world, the setup.py or something top level would need to be parsed. That would be enough to make the metadata node. All the things in the requirements.txt would be treated as it's direct dependencies. And their subsequent (2-degree dependency) would be the transitive deps.
Also could you elaborate
The dependency graph extension should not be used. Rather, the built-in dependency graph elements should be used instead
does that simply mean <dg:dependency> gets changed to <dependency> ?
Leaving this open as some work may be required in this application for outputting dependency graphs once cyclonedx-python-lib successfully supports bom.dependencies - see CycloneDX/cyclonedx-python-lib#7.
I'm struggling to understand the current state of this feature. It seems like the library supports this now, but there's still some work left on this side of things, correct?
If so, would it be a good idea to work on #303 and go from there, or does it need a new attempt? I'd love for this feature to finally make it into the tool and am willing to help out.
I have had reason and time to look at this again, and now I understand how... thorny this can be.
I think I can port the work from #303 onto a newer version of the source, so that the poetry and environment parsers will support it, and I have a PoC for how to do it from a requirements.txt that has been generated by pip-compile.
Should I just open a branch with all of these changes, as a proposal? Or should I leave the pip-compile-based one out, since that is a specific variant of the regular requirements.txt?
Activity
stevespringett commentedon Jan 8, 2020
Support for dependency graphs should be included in every official CycloneDX implementation, including this one. Currently, only the Maven plugin supports it.
I'm relying heavily on the community for these types of enhancements. PR's are highly encouraged.
sbs2001 commentedon Mar 8, 2021
How does this look
I have rough implementation of this, will open a PR soon.
This is in reference to https://cyclonedx.org/ext/dependency-graph/ . That page says "It has been incorporated (with minor changes) into CycloneDX v1.2 and higher. #"
Could someone point me to the "minor changes" ?
stevespringett commentedon Mar 8, 2021
The dependency graph extension should not be used. Rather, the built-in dependency graph elements should be used instead. This is going to require #9 to be implemented.
The 'minor change' is actually with regard to #9 - the metadata section. The dependency graph example provided in #40 (comment) is not capable of describing direct vs transitive relationships. The 'minor change' in v1.2 is that the dependency graph can now make that distinction. Refer to https://cyclonedx.org/use-cases/#dependency-graph
sbs2001 commentedon Mar 10, 2021
@stevespringett thanks for the links . Correct me if I am wrong: to translate the v1.2 spec to python world, the
setup.pyor something top level would need to be parsed. That would be enough to make themetadatanode. All the things in therequirements.txtwould be treated as it's direct dependencies. And their subsequent (2-degree dependency) would be the transitive deps.Also could you elaborate
does that simply mean
<dg:dependency>gets changed to<dependency>?stevespringett commentedon Mar 10, 2021
Correct
mgrajesh1 commentedon Jul 11, 2021
@sbs2001 , were you able to raise PR for above? Thanks
madpah commentedon Sep 16, 2021
Leaving this open as some work may be required in this application for outputting dependency graphs once
cyclonedx-python-libsuccessfully supportsbom.dependencies- see CycloneDX/cyclonedx-python-lib#7.KramNamez commentedon Nov 22, 2022
I'm struggling to understand the current state of this feature. It seems like the library supports this now, but there's still some work left on this side of things, correct?
If so, would it be a good idea to work on #303 and go from there, or does it need a new attempt? I'd love for this feature to finally make it into the tool and am willing to help out.
[-]Support for the dependency graph extension[/-][+]Feat: dependency graph in SBOM result[/+]jkowalleck commentedon Dec 22, 2022
re: #40 (comment)
looks the same to me.
CycloneDX lib got support, but there is nothing done in the actual detection of dependencies.
KramNamez commentedon Feb 7, 2023
I have had reason and time to look at this again, and now I understand how... thorny this can be.
I think I can port the work from #303 onto a newer version of the source, so that the poetry and environment parsers will support it, and I have a PoC for how to do it from a
requirements.txtthat has been generated bypip-compile.Should I just open a branch with all of these changes, as a proposal? Or should I leave the
pip-compile-based one out, since that is a specific variant of the regularrequirements.txt?jkowalleck commentedon Apr 27, 2023
related: #487 (comment)
this shows an idea how to create a dep tree from
requirements.txt@madpah FYI
jkowalleck commentedon Nov 14, 2023
will be part of upcoming v4
at least for some sources
jkowalleck commentedon Dec 25, 2023
fixed by #605
jkowalleck commentedon Dec 25, 2023
This feature will be part of the next/upcoming major release.
Changelog: see #605
Install via:
pip install cyclonedx-bom==4.0.0rc1