Skip to content

do not add self to metadata.tools #673

Closed

Description

@jkowalleck

If the Bom.metadata.tools are found empty, this library adds an entry to it, to represent itself.

This might look like a cute idea at first, but it alters the original data on deserialization:
when deserialization of a CycloneDX BOM that did not hold any data about tools, the library will add itself to the tools. This is unexpected behavior.

A suitable solution would be to add this library not to the SBOM at all.
Instead, the library should provide functionality in the form of a builder, to generate itself's representation as a tool/component, so that downstream users may use it.

Activity

  1. added
    enhancement
    on Sep 16, 2024
  2. jkowalleck commented on Sep 16, 2024

    @jkowalleck
    MemberAuthor

    this is considered a breaking change, as existing behaviour is modified

  3. self-assigned this
    on Sep 16, 2024
  4. added this to the 8.0.0 milestone on Sep 16, 2024
  5. jkowalleck commented on Sep 16, 2024

    @jkowalleck
    MemberAuthor

    implementation finished

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

Metadata

Metadata

Assignees

Labels

breaking changeenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions