Skip to content

Flatmerge clobbers metadata.component #183

Description

@electricgull

Flatmerge clobbers metadata.component when the new metadata is initiated and the only sub-element that persists is metadata.tool.

result.Metadata = new Metadata

If you can advise on how this should be handled, I'm happy to create a pull request with the change. Possibly, convert metadata.component to a List and then merge like metadata.tool?

This bug is linked to the following issues

#CycloneDX/cyclonedx-cli#218
#CycloneDX/cyclonedx-cli#219

Activity

  1. electricgull commented on Nov 10, 2022

    @electricgull
    Author

    This was fixed in the cli v0.24.2, but it looks like it's still present in the library.

    CycloneDX/cyclonedx-cli@148e8ed

  2. jimklimov commented on Sep 22, 2023

    @jimklimov
    Contributor

    Should get fixed by #256 on the library side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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