Closed Mikcl closed 2 months ago
Fixes https://github.com/anchore/syft/issues/3064
(provided there is agreement to normalize the names, discussion in the issue).
This PR adds a normalization function according to python packaging specification https://packaging.python.org/en/latest/specifications/name-normalization/ to each of the package types. And adds/updates existing tests.
The name and the purl are updated, the "metadata" still preserves the unnormalized name.
Nice! There are no matching or downstream concerns here given that we already normalize these values for the PURL when using grype. This change should help consumers of syft SBOM going forward so 🟢
Fixes https://github.com/anchore/syft/issues/3064
(provided there is agreement to normalize the names, discussion in the issue).
This PR adds a normalization function according to python packaging specification https://packaging.python.org/en/latest/specifications/name-normalization/ to each of the package types. And adds/updates existing tests.
The name and the purl are updated, the "metadata" still preserves the unnormalized name.