sbom icon indicating copy to clipboard operation
sbom copied to clipboard

Implement `component.group`

Open maennchen opened this issue 2 months ago • 0 comments

Purpose: Grouping related components for better organization.

Proposed:

defp determine_group(component) do
  case component.package_url.type do
    "otp" when is_erlang_stdlib(component.name) -> "erlang.otp"
    "github" when is_elixir_stdlib(component.name) -> "elixir.stdlib"
    _ -> nil
  end
end

Output:

{
  "name": "stdlib",
  "group": "erlang.otp",
  "type": "library"
},
{
  "name": "logger",
  "group": "elixir.stdlib",
  "type": "library"
}

[!IMPORTANT] Question: ❓ Group naming convention:

  • Should Hex organizations map to groups?

maennchen avatar Dec 04 '25 13:12 maennchen