Skip to content

Commit

Permalink
The dependencies for the parent component can (apparently) be undefin…
Browse files Browse the repository at this point in the history
…ed...

Signed-off-by: Roland Asmann <roland.asmann@gmail.com>
  • Loading branch information
malice00 committed Jan 16, 2025
1 parent f92d595 commit 5528d1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6514,9 +6514,15 @@ export async function createMultiXBom(pathList, options) {
"dependsOn" === process.env.MULTI_BOM_COMPONENT_REF
? "dependsOn"
: "provides";
const parentDependencies = dependencies.find(
let parentDependencies = dependencies.find(
(d) => d["ref"] === parentComponent["bom-ref"],
);
if (!parentDependencies) {
parentDependencies = {
ref: parentComponent["bom-ref"],
};
dependencies = mergeDependencies(dependencies, parentDependencies);
}
if (!parentDependencies[multiBomComponentRef]) {
parentDependencies[multiBomComponentRef] = [];
}
Expand Down

0 comments on commit 5528d1e

Please sign in to comment.