Skip to content

deb: map distro qualifiers such as debian-12 to codenames in the resolver #143

Open

Description

@simonchrz

Follow-up to #140 (#97).

The deb client records each artifact's distro as the Release codename, such as bookworm or jammy. PURLs written by scanners often carry the release instead: trivy and syft write distro=debian-12 or distro=ubuntu-22.04. Those don't match, so fetch.Resolver finds no artifact for them.

The resolver needs a table from debian-<n> and ubuntu-<n.n> to codenames (debian-12 → bookworm, debian-13 → trixie, ubuntu-22.04 → jammy, ubuntu-24.04 → noble, ...), applied to the distro qualifier before matching.

Activity

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