File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
from cyclonedx .factory .license import LicenseFactory
2
- from cyclonedx .model import OrganizationalEntity , XsUri
3
- from cyclonedx .model .bom import Bom , LicenseChoice
2
+ from cyclonedx .model import LicenseChoice , OrganizationalEntity , XsUri
3
+ from cyclonedx .model .bom import Bom
4
4
from cyclonedx .model .component import Component , ComponentType
5
- from cyclonedx .model .dependency import Dependency
6
5
from cyclonedx .output .json import JsonV1Dot4
7
6
from cyclonedx .output .xml import XmlV1Dot4
8
7
from packageurl import PackageURL
34
33
)
35
34
36
35
bom .components .add (component )
37
- bom .dependencies . add ( Dependency ( rootComponent . bom_ref , [Dependency ( component . bom_ref )]) )
36
+ bom .register_dependency ( rootComponent , [component ] )
38
37
39
38
# endregion build the BOM
40
39
You can’t perform that action at this time.
0 commit comments