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

Possible bug while iterating on dependency #16

Open
arnaudgelas opened this issue Feb 21, 2022 · 0 comments
Open

Possible bug while iterating on dependency #16

arnaudgelas opened this issue Feb 21, 2022 · 0 comments

Comments

@arnaudgelas
Copy link

arnaudgelas commented Feb 21, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant