Skip to content

Commit bc426e2

Browse files
authored
Include BomRef within Component hash calculation
Addresses CycloneDX#540 Signed-off-by: wkoot <[email protected]>
1 parent 111cadc commit bc426e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/model/component.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ def __hash__(self) -> int:
17831783
self.mime_type, self.supplier, self.author, self.publisher,
17841784
self.description, self.scope, tuple(self.hashes),
17851785
tuple(self.licenses), self.copyright, self.cpe,
1786-
self.purl,
1786+
self.purl, self.bom_ref,
17871787
self.swid, self.pedigree,
17881788
tuple(self.external_references), tuple(self.properties),
17891789
tuple(self.components), self.evidence, self.release_notes, self.modified,

0 commit comments

Comments
 (0)