Replies: 1 comment 1 reply
-
Could you triage and share the cmake file that triggers this error? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm experiencing the following error when trying to generate an SBOM for a Cmake application. I'm using the command
cdxgen -t cpp -o bom.json
Error Output:
C[…]@CycloneDX\cdxgen\node_modules\packageurl-js\src\package-url.js:43
throw new Error('Invalid purl: "' + key + '" is a required field.');
^
Error: Invalid purl: "name" is a required field.
at C[…]@CycloneDX\cdxgen\node_modules\packageurl-js\src\package-url.js:43:15
at Array.forEach ()
at new PackageURL (C[…]@CycloneDX\cdxgen\node_modules\packageurl-js\src\package-url.js:41:27)
at file:///C[...]@cyclonedx/cdxgen/utils.js:10373:17
at Array.forEach ()
at parseCmakeLikeFile (file:///C[...]@cyclonedx/cdxgen/utils.js:10167:29)
at createCppBom (file:///C[...]@cyclonedx/cdxgen/index.js:3639:22)
at createBom (file:///C[...]@cyclonedx/cdxgen/index.js:6300:12)
at file:///C:[...]@cyclonedx/cdxgen/bin/cdxgen.js:497:26
at file:///C[...]@cyclonedx/cdxgen/bin/cdxgen.js:725:3
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions