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.

Possible bug while iterating on dependency #16

@arnaudgelas

Description

@arnaudgelas

Not really familiar yet with the outcome but the following code in command seems bogus, name & version of the bom dictionary is updated while iterating on dependencies:

for node in ...:
...
            bom['metadata']['component']['name'] = os.path.basename(os.path.dirname(node.path))
            bom['metadata']['component']['bom-ref'] = bom['metadata']['component']['name'] + '@' + bom['metadata']['component']['version']

It would be really helpful to add even the most simple test with expected output for at least 1 dummy conan package with 2 dependencies.

My 2 cts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions