-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create dir for output file #1241
Comments
this is not a bug, but intended behavior.
could you elaborate why this "feature" would be needed? |
the following worked for me: mkdir -p dist/foo/bar
cyclonedx-npm --output-file dist/foo/bar/bom.cdx.json |
I agree that is not a bug, but an enhancement.
For sure, I can create a folder myself. But it is easier for the caller, if the library supports the creation of a directory if needed. |
I understand. This sounds like a nice-to-have feature, but in fact, I'd consider it a breaking change: |
Describe the bug
When the
output-file
contains a path, then the generation fails.I want to place the result of the sbom not in the root directory, but in a dedicated build folder for further processing in the pipeline.
To Reproduce
The following call
will cause an ERROR and no sbom is generated.
Expected behavior
The folders are generated if the
--output-file
argument contains a path.Environment
The text was updated successfully, but these errors were encountered: