Skip to content

cataloger dpkg-db-cataloger not working #2323

@noqcks

Description

@noqcks

What happened:

The README specifies that dpkg-db-cataloger is a valid cataloger. I can also see this in the codebase

func NewDBCataloger() *generic.Cataloger {
	return generic.NewCataloger("dpkg-db-cataloger").

But when I go to set it in my catalog list, it fails

.syft.yaml

catalogers:
  - dpkg-db-cataloger

I get nothing

$ syft ubuntu -q | grep deb

but when I set the cataloger list like this

.syft.yaml

catalogers:
  - dpkgdb-cataloger

it works

$ syft ubuntu -q | grep deb
adduser              3.118ubuntu5                             deb
apt                  2.4.10                                   deb
base-files           12ubuntu4.4                              deb
base-passwd          3.5.52build1                             deb

Why? The simple fix is to update the docs, but im perplexed why this is happening.

Environment:

  • Output of syft version:
Application: syft
Version:    0.94.0
BuildDate:  2023-10-20T17:21:07Z
GitCommit:  8f6bdde6662aa8050a71eadbdb7bd5a3b079a56d
GitDescription: v0.94.0
Platform:   darwin/arm64
GoVersion:  go1.21.3
Compiler:   gc
  • OS (e.g: cat /etc/os-release or similar): macos

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions