Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

BOM not usable from stdout directly #52

@codetent

Description

@codetent

Executing the tool and then extracting the BOM from stdout does not work if conan outputs logging information to stdout too. Then the two outputs are mixed and piping stdout to a file does not work.

I guess this happens because conan is configured with default settings and conan info is used (https://github.com/CycloneDX/cyclonedx-conan/blob/main/src/command.py#L81). If e.g., recipes are missing, conan automatically fetches them and prints messages to stdout.

Personally, I would prefer if there is a parameter to specify an output file for the generated json. Otherwise, the conan output could also be suppressed but this could make debugging harder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions