Skip to content

Commit b932a80

Browse files
authored
Merge pull request #276 from ruromero/ignore-dups
feat: ignore duplicated CycloneDX purls
2 parents a164372 + 7557ed8 commit b932a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/redhat/exhort/integration/backend/sbom/cyclonedx/CycloneDxParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private Map<PackageRef, DirectDependency> buildUnknownDependencies(
143143
.forEach(
144144
v -> {
145145
if (deps.containsKey(v)) {
146-
throw new IllegalStateException("Duplicate component: " + v.purl());
146+
LOGGER.debug("Ignore duplicate key {}", v);
147147
}
148148
deps.put(v, DirectDependency.builder().ref(v).build());
149149
});

0 commit comments

Comments
 (0)