Closed iamrahul127 closed 5 months ago
@jkowalleck You have asked detailed steps in #1164 issue which is marked closed now. Here are the steps. I am also facing exact same issue. Let me know if you need anymore information.
Apologies to tag you directly.
thank you for the report.
will try to reproduce on windows and investigate.
this flag --package-lock-only
you used - this causes the tool to not read any package manifest files, but use the lock file only.
--package-lock-only Whether to only use the lock file, ignoring "node_modules". This means the output will be based only on the few details in and the tree described by the "npm-shrinkwrap.json" or "package-lock.json", rather than the contents of "node_modules" directory. (default: false)
Unfortunately, your provided lock file does not hold any license information.
technical background: npm's lockfileVersion=2
holds license information for packages, current current lockfileVersion=3
does not. You provided a lock file version 3.
Describe the bug
SBOM generated doesn't have license information included for multiple components.
To Reproduce
angularbom.json package.json package-lock.json
ng new bomissue
.npm install
in no packages are installed.cyclonedx-npm --short-PURLs --package-lock-only --flatten-components --ignore-npm-errors --output-file angularbom.json
Expected behavior
I expect generated bom to include following for @angular-devkit/build-angular@16.2.14 component
Environment