+
Skip to content

Syft detection versions in egg-info files and not merging them with distro-detected versions #4024

Open
@ciscochaig

Description

@ciscochaig

What happened:
python3-setuptools detected with two versions:
66.1.1 from syft
/usr/lib/python3/dist-packages/setuptools-66.1.1.egg-info/top_level.txt
/usr/lib/python3/dist-packages/setuptools-66.1.1.egg-info/PKG-INFO

66.1.1-1+deb12u1 from syft
/var/lib/dpkg/info/python3-setuptools.list
/var/lib/dpkg/info/python3-setuptools.prerm
/usr/share/doc/python3-setuptools/copyright
/var/lib/dpkg/info/python3-setuptools.md5sums
/var/lib/dpkg/info/python3-setuptools.postinst
/var/lib/dpkg/status

What you expected to happen:
Only version 66.1.1-1+deb12u1 to appear

Steps to reproduce the issue:
Download/install python3-setuptools 66.1.1-1+deb12u1 in a debian 12 container and scan

Anything else we need to know?:
dpkg know ALL of the files installed - you can use that list to correlate two different kinds of detections and merge them

Environment:

  • Output of syft version: 1.18.0
  • OS (e.g: cat /etc/os-release or similar): debian 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood-first-issueGood for newcomers

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载